Пример #1
0
    void Awake()
    {
        // Enables push notifications on iOS.
        Leanplum.RegisterForIOSRemoteNotifications();

        // Automatically tracks in-app purchases on iOS.
        // To track in-app purchases on Android,
        // use Leanplum.trackGooglePlayPurchase in your Android code when a purchase occurs.
        Leanplum.TrackIOSInAppPurchases();
    }
Пример #2
0
    void Awake()
    {
        // First, you need to setup your AndroidManifest.xml file to use push notifications.
        // See the documentation in Help > Docs > Unity > In-App & Push.
        Leanplum.SetGcmSenderId(Leanplum.LeanplumGcmSenderId);

        // Enables push notifications on iOS.
        Leanplum.RegisterForIOSRemoteNotifications();

        // Automatically tracks in-app purchases on iOS.
        // To track in-app purchases on Android,
        // use Leanplum.trackGooglePlayPurchase in your Android code when a purchase occurs.
        Leanplum.TrackIOSInAppPurchases();
    }