Event OnNotificationReceived
An event that fires when notification is received. Application must be running for this event to work. On Android this even fires if application is in foreground or when it's brought back from background. On iOS this even only fires when notification is received while app is in foreground.
Namespace: Unity.Notifications
Assembly: solution.dll
Syntax
public static event NotificationCenter.NotificationReceivedCallback OnNotificationReceived
Returns
| Type | Description |
|---|---|
| NotificationCenter.NotificationReceivedCallback |
Remarks
This event is the same as AndroidNotificationCenter.OnNotificationReceived and iOSNotificationCenter.OnNotificationReceived.