English

Push tokens

Push tokens are used for Audience Builder and client callbacks. They are also required for uninstall and reinstall tracking.

You can send your push notification token to Adjust once you have got it, or when its value changes. To do this, call the setDeviceToken method with your token. You should do this in the didRegisterForRemoveNotificationsWithDeviceToken method in your delegate file.

Objective-C
Swift
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
    [Adjust setDeviceToken:deviceToken];
}

If you have access to the push token from the web view, you can call the setDeviceToken method in Javascript:

Javascript
Adjust.setDeviceToken(deviceToken);