SDK Installation
Pass the Cards config in the SDK initialization script, as shown below.Notify on Inbox Open
Whenever you open the inbox, you can notify Moengage as shown below to sync the data and track the inbox open event.Fetch Categories
To fetch all the categories for which cards are configured, use the getCardCategories() API.Fetch Cards for Categories
To fetch the cards eligible for display for a specific category, use the getCardsForCategory(categoryName) API.Fetch Card Info
Instead of using separate APIs to fetch Cards and categories, you can use the *getCardsInfo(cardID)*API to fetch all the information in one go.Refresh Cards from the Server
Use the fetchCards() API to refresh cards from the MoEngage server if required.For details on the sync timing and rate limits for
fetchCards(), see When Does the MoEngage SDK Sync Card Data?