Skip to content

Events

The SDK tells the service what happens to its notifications and to the device, so the dashboard shows more than what was sent. Apps don't call anything for it.

Event When
received In the Notification Service Extension, if the app has one
displayed Shown while the app is open, found in Notification Center when the app comes to the foreground, or tapped
suppressed Hidden while the app is open
opened Tapped
app_opened The app comes to the foreground, not when launched in the background
permission_granted, permission_provisional, permission_denied The permission changed since the app last looked
token_refreshed The push token changed

Each event is stored on the device first and sent right away. One that can't be sent, for example offline, is sent later, for up to 30 days; one the device couldn't store is sent once, and lost if that fails. When the service rate limits them, they're kept and sent again once the wait it asked for has passed, though a relaunch can send them sooner, and a notification's events still get one immediate attempt. While a deletion of the user is pending, events wait, and the deletion drops them with the user's data. Sending one twice is harmless.

Limits to know when reading the numbers:

  • Without an extension there's no received.
  • displayed is missing for a notification shown while the app wasn't running and swiped away before the app next opened: iOS tells no app code about either, and Notification Center no longer has it.
  • dismissed isn't reported on iOS: iOS only reports a swipe for notifications with a category that asks for it.
  • token_refreshed is reported once the service accepts the update carrying the new token, which the SDK sends after it next reads the token (at launch, in the foreground, or after asking for permission), not when iOS issues it.