Migrating from addon-inbox 6.0.2

Changes to be made when migrating from addon-inbox

📘

This migration is required only if you are using addon-inbox 6.0.2 or below and migrating to 11.2.00 or above version of moe-android-sdk

Since the early days of MoEngage, we have provided addon-inbox artifact for using Notification Center in your application. We have revamped the module and broken down the module into multiple modules to make it more robust, lightweight, and scalable for future improvements/enhancements.

Updated Artificats

inbox-core - Module contains APIs and helper methods to build an inbox. Provides APIs to fetch messages, track clicks, etc

inbox-ui - Module contains the user interface for the inbox module and helper methods for customisation of the UI.

Using SDK's Notification Center

If you are using the UI provided by the SDK you need to include the inbox-ui module in your application. Key changes you would notiice here apart from the artifact name update

  • RecyclerView used instead of ListView
  • Updated UI
  • API updates for customising the UI

Refer to the updated documentation for details on how to use the default UI and possible customisation.

Self handled Notification Center

If you were bulding your own Notification Center consuming the data from MoEngage we have made the APIs simpler for you and made the SDK lighter. Integrate the inbox-core module.

Refer to the documentation for updated APIs

Update the packages:

While we have revamped the modules we have tried to maintain some of the classes to avoid re-integration where-ever feasible. Though we have not changed the APIs as such we have moved it to a new package for better integration in the future.
Refer to the below table for updated packages.

ThenNow
com.moengage.addon.inbox.MoEInboxHelpercom.moengage.inbox.core.MoEInboxHelper
com.moengage.addon.inbox.listener. OnMessagesAvailableListenercom.moengage.inbox.core.listener.OnMessagesAvailableListener
com.moengage.addon.inbox.InboxMessageClickCallbackcom.moengage.inbox.ui.listener.OnMessageClickListener
com.moengage.addon.inbox.MoEInboxActivitycom.moengage.inbox.ui.view.InboxActivity
com.moengage.addon.inbox.InboxFragmentcom.moengage.inbox.ui.view.InboxFragment
com.moengage.addon.inbox.InboxManager.ViewHoldercom.moengage.inbox.ui.adapter.ViewHolder
com.moengage.addon.inbox.InboxManager.InboxAdaptercom.moengage.inbox.ui.adapter.InboxAdapter