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, you need to add the following iOS native method(s) in the AppDelegate class to pass your push token to Insider manually.

- (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)
}