Alert + Inbox Messages

The Alert + Inbox feature enables users to tap on an inbox push notification and get redirected to the corresponding inbox message. The inbox data is added to the push notification payload. However, due to Apple’s payload size restrictions, not all inbox fields can be added to the push payload. Nevertheless, users are still redirected to the message without issues, and all fields become available when they return to the inbox.

Initially, these fields aren’t available in the Alert + Inbox Message dictionary:

  • sendDateUtc
  • startDateUtc
  • endDateUtc
  • subject
  • statusDirty

Mark Inbox Read on Notification Clicked 

To automatically mark an inbox message as read when a user taps on an inbox push notification, enable or disable the setMarkMessageReadOnInboxNotificationOpen feature in the PushConfigBuilder.

Refresh Inbox Messages When Application is in The Foreground 

When the application receives an Alert + Inbox notification while it’s in the foreground, call the refreshMessages method to fetch the latest inbox messages. This step makes sure that the UI contains the most recent content. For an example, see the iOS LearningApp.