Documentation Index

Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt

Use this file to discover all available pages before exploring further.

I added my device as a test device, but my token cannot be validated.

Prev Next

After adding a test device, if you do not see a checkmark under the Token column for your device, your iOS app may be having an issue with passing its push token to Insider SDK. 

To solve this issue, add the following iOS-native method(s) to the AppDelegate class to manually pass your push token to Insider One.

- (void)application:(UIApplication *)application
didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
  [Insider registerDeviceTokenWithApplication:application deviceToken:deviceToken];
}
func application(_ application: UIApplication,
                 didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
    Insider.registerDeviceToken(withApplication: application, deviceToken: deviceToken)
}