Implement Inbox Messaging on Android
The MobilePush Android SDK provides convenience methods for refreshing the app inbox and managing messages, including retrieving, reading, and deleting them. For more information on these methods, see the InboxMessageManager
Method Reference.
You can enable Inbox Messaging while initializing the SDK, as shown in the following examples.
By default, the SDK marks an inbox message as read when the user taps on the notification for an Alert+Inbox
message. You can toggle this behavior by enabling or disabling markMessageReadOnInboxNotificationOpen
in MarketingCloudConfig
.
The SDK doesn’t automatically present URLs from Alert+CloudPage
push messages. To handle the URLs from these messages, see Customize Notification Handling.
To sort inbox messages in your custom inbox implementation, use the value of sendDateUtc
from the Inbox Message returned by getMessages
and other getters.