Class PushNotificationAnalytics
Namespace: Unity.Services.PushNotifications
Syntax
public class PushNotificationAnalytics : object, IPushNotificationsAnalytics
Methods
RecordNotificationOpened(Dictionary<String, Object>, Boolean)
This method should be called when the user opens the app from a push notification. If using one of this SDK's platform specific implementations this method will be called for you.
Declaration
public void RecordNotificationOpened(Dictionary<string, object> payload, bool didLaunch)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<String, Object> | payload | The dictionary containing required the event data. |
| Boolean | didLaunch | Was the app launched from opening the notification? |
RecordPushTokenUpdated(String)
This method should be called when the user's push notification token is updated. Most commonly this is when first registering for notifications, but can also occur at other points during the app lifecycle. If using one of this SDK's platform specific implementations this method will be called for you.
Declaration
public void RecordPushTokenUpdated(string pushToken)
Parameters
| Type | Name | Description |
|---|---|---|
| String | pushToken | The push token relating to this user's device. |