Installation
To add the MoEngage Inbox SDK to your application, edit your application’s pubspec.yaml file and add the below dependency to it:This plugin is dependent on moengage_flutter plugin. Make sure you have installed the moengage_flutter plugin as well. Refer to the doc for the same.
Android Installation
iOS Installation
In the case of iOS, the native dependency is part of the core SDK itself, so there is no need to include any additional dependency for supporting Notification Center.Fetch Messages
To fetch all the inbox messages use fetchAllMessages() method as shown below, where you would get an instance of InboxData.InboxData Payload
InboxData will be received in the below format:Get Unclicked Message Count
To obtain the unclicked messages count from the Inbox use getUnclickedCount() method as shown below:Track Message Clicks:
To track clicks on the messages inside your Inbox use trackMessageClicked() method as shown below:Delete Message:
To delete a particular message from the list of messages use deleteMessage() method as shown below:The hybrid framework does not support the MoEngage default notification center. Only the Self-handled Notification center is supported.