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 The push arrives
displayed The notification is posted
suppressed Notifications or the channel are turned off, or it's hidden in the foreground
opened Tapped
dismissed Swiped away or cleared
app_opened The app comes to the foreground, not when launched in the background
permission_granted, 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.

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 Firebase issues it.