In the preceding section, we discussed the configuration for utilizing the default App Inbox implementation.For developers interested in implementing a custom Activity as the App Inbox notification center,
Castled SDK offers methods that facilitate the retrieval of messages for display. Additionally, SDK provides essential methods for managing key lifecycle events.
Copy
// Fetching the unread message count directlyCastledNotifications.getInboxUnreadCount { println("unread count is $it")}// Retrieving all inbox itemsCastledNotifications.getInboxItems { inboxItems -> println("InboxItems $inboxItems")}// Logging read inbox itemsCastledNotifications.logInboxItemsRead(itemsList)// Deleting a specific inbox itemCastledNotifications.deleteInboxItem(inboxItem)// Logging a click on an inbox itemCastledNotifications.logInboxItemClicked(inboxItem, "btn-title")