Interface IPushNotificationsAnalytics
This interface is no longer required. Notification events are recorded for you automatically when you register for push notifications using RegisterForPushNotificationsAsync.
Namespace: Unity.Services.PushNotifications
Assembly: Unity.Services.PushNotifications.dll
Syntax
[Obsolete("This interface should not be used. It will be deleted in the future version. Notification events are recorded for you automatically.")]
public interface IPushNotificationsAnalytics
Methods
RecordNotificationOpened(Dictionary<string, object>, bool)
RecordNotificationOpened is no longer required. Notification events are recorded for you automatically when you register for push notifications using RegisterForPushNotificationsAsync.
Declaration
void RecordNotificationOpened(Dictionary<string, object> payload, bool didLaunch)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<string, object> | payload | Please use the RegisterForPushNotificationsAsync method |
bool | didLaunch | Please use the RegisterForPushNotificationsAsync method |
RecordPushTokenUpdated(string)
RecordPushTokenUpdated is no longer required. Notification events are recorded for you automatically when you register for push notifications using RegisterForPushNotificationsAsync.
Declaration
void RecordPushTokenUpdated(string pushToken)
Parameters
Type | Name | Description |
---|---|---|
string | pushToken | Please use the RegisterForPushNotificationsAsync method |