Browse SDKs · Android
SDKsAndroid

Insert a local direct message

Use insertSingleMessageToLocalStorage to insert a one-to-one message visible only on the current device.

Copy

This method does not send the message to the server. receiver is the recipient's user ID, and sender is the sender's user ID.

messageManager.insertSingleMessageToLocalStorage(callback, message, receiverUserID, senderUserID);