App Inbox is a screen within a mobile app that stores persistent messages. It’s kind of like an email inbox, but it lives inside the app itself. App Inbox differs from other mobile channels such as push notifications or in-app messages. For both push and in-app messages, they’re gone once you open them.
In other words, D·engage admin panel lets you keep selected messages on the platform and Mobile SDK may retreive and display these messages when needed.
In order to save messages into App Inbox, you need to select “Save to Inbox” option when sending messages in D·engage admin panel by assigning an expire date to it.
App Inbox in Android SDK
Inbox messages are kept in the memory storage of the phone until app is completely closed or for a while and D·engage SDK provides functions for getting and managing these messages.
- D·engage SDK 3.2.3+
Push message payload contains a parameter which is called “addToInbox”. This parameter represents whether the push message will save to D-engage database or not. When a push message is received with the parameter, the message is saved to memory on notification building stage. So your users can access the messages again from the D·engage database. The following methods provides an interface you to access these messages easily.
Getting Inbox Messages
Developer can access the stored inbox messages with the following method.
public void getInboxMessages(Integer limit, Integer offset, DengageCallback<List<InboxMessage>> dengageCallback)
Removing Inbox Message
Developer can remove the stored inbox message with the following method.
Marking Inbox Message as Clicked
Developer can mark the stored inbox message as click with the following method.