Event OnRemoteNotificationReceived
Subscribe to this event to receive a callback whenever a remote notification is received while the app is in foreground, if you subscribe to this event remote notification will not be shown while the app is in foreground and if you still want to show it to the user you will have to schedule a local notification with the data received from this callback. If you want remote notifications to be shown automatically subscribe to the [[OnNotificationReceived]] even instead and check the [[Notification.Trigger]] class type to determine whether the received notification is a remote notification.
Namespace: Unity.Notifications.iOS
Assembly: solution.dll
Syntax
public static event iOSNotificationCenter.NotificationReceivedCallback OnRemoteNotificationReceived
Returns
| Type | Description |
|---|---|
| iOSNotificationCenter.NotificationReceivedCallback |