Support Home > SDK Integration > SDK – KochavaTracker > Class – KochavaTracker > Instance Method – addRemoteNotificationsDeviceToken

Instance Method – addRemoteNotificationsDeviceToken

  • Instance Method

    addRemoteNotificationsDeviceToken(_:)

    Add a remote notifications device token.

     

    Declaration

    Discussion

    This method builds upon Apple’s remote notifications capability, as outlined here. Upon request, the operating system will return a remote notifications device token. You may then provide that token to Kochava for use with its push notifications service.

    Adding a remote notifications device token to the tracker sends the token to Kochava’s servers, where it is later used to route push notifications. You should pass the deviceToken as it was provided to you in the UIApplicationDelegate callback instance method application(_:didRegisterForRemoteNotificationsWithDeviceToken:)

     

    Sample Code:

     

    See Also

    Related Symbols func removeRemoteNotificationsDeviceToken(_:)

    Remove a remote notifications device token.

    External Documentation Apple Local and Remote Notifications Overview

    Local notifications and remote notifications are ways to inform users when new data becomes available for your app, even when your app is not running in the foreground. For example, a messaging app might let the user know when a new message has arrived, and a calendar app might inform the user of an upcoming appointment.

  • Instance Method

    addRemoteNotificationsDeviceToken(_:)

    Add a remote notifications device token.

     

    Declaration

    Discussion

    This method builds upon Apple’s remote notifications capability, as outlined here. Upon request, the operating system will return a remote notifications device token. You may then provide that token to Kochava for use with its push notifications service.

    Adding a remote notifications device token to the tracker sends the token to Kochava’s servers, where it is later used to route push notifications. You should provide the deviceToken as it was provided to you in the UIApplicationDelegate callback instance method application:didRegisterForRemoteNotificationsWithDeviceToken:

     

    Sample Code:

     

    See Also

    Related Symbols removeRemoteNotificationsDeviceToken:

    Remove a remote notifications device token.

    External Documentation Apple Local and Remote Notifications Overview

    Local notifications and remote notifications are ways to inform users when new data becomes available for your app, even when your app is not running in the foreground. For example, a messaging app might let the user know when a new message has arrived, and a calendar app might inform the user of an upcoming appointment.

 
 

Last Modified: Jul 12, 2018 at 8:17 am