docs.unity3d.com
    Show / Hide Table of Contents

    Class PushNotificationAnalytics

    Inheritance
    Object
    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023