enableAppInbox config set to true during SDK initialization.
This is the easiest way to add App Inbox functionality to your mobile app. In this setup app will be using the default notification
center activity provided by the SDK for displaying inbox messages and managing them. You can also customize the appearance of the notification center activity
to match your app theme.
You can lauch notification center activity to display App Inbox messages. Following code snippet can be used whenever you want to show inbox messages to the app user.
The SDK offers method to obtain the count of unread messages, suitable for display purposes.
One use case is to show the unread message count as a badge on notification bell icon to prompt user to check on pending inbox items.
Copy
CastledNotifications.getInboxUnreadCount { // do something with unread count $it }