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 iOS SDK
App Inbox messages are kept in the memory storage of the device and D·engage Mobile SDK provides functions for fetching these messages from the platform.
- D·engage SDK 2.5.21+
There are 3 methods to manage App Inbox Messages
- To get app inbox messages from the server
Dengage.getInboxMessages(offset: Int, limit: Int = 20, completion: @escaping (Result<[DengageMessage], Error>) -> Void)
- To delete a specific message from the inbox.
Dengage.deleteInboxMessage(with id: String, completion: @escaping (Result<Void, Error>) -> Void)
- to mark a specific message as clicked.
Dengage.setInboxMessageAsClicked(with id: String,completion: @escaping (Result<Void, Error>) -> Void)