Advanced

⚡️ Notification Events

The notification events are only delivered after setListeners method being called, and they are not always delivered at same time as they happen. The awesome notifications event methods available to track your notifications are:

onNotificationCreatedMethod

Fires when a notification is created

onNotificationDisplayedMethod

Fires when a notification is displayed on system status bar

onActionReceivedMethod

REQUIRED Fires when a notification is tapped by the user

onDismissedActionReceivedMethod

Fires when a notification is dismissed by the user (sometimes the OS denies the deliver)


Delivery conditions:

PlatformApp in ForegroundApp in BackgroundApp Terminated (Killed)
AndroidFires all events immediately after occursFires all events immediately after occursStore events to be fired when app is on Foreground or Background
iOSFires all events immediately after occursStore events to be fired when app is on ForegroundStore events to be fired when app is on Foreground

Exception

onActionReceivedMethod fires all events immediately after occurs in any application life cycle, for all Platforms.

Previous
🔷 Flowchart