title: APNS rejects notification with reason "DeviceTokenNotForTopic"
body: <p>I'm receiving this error only when trying to register for remote notifications using UserNotifications framework.
  When using PushKit everything works ok.</p>
  <pre><code>    dispatch_queue_t mainQueue = dispatch_get_main_queue();
      // Create a push registry object
      self.voipRegistry = [[PKPushRegistry alloc] initWithQueue: mainQueue];
      // Set the registry's delegate to self
      self.voipRegistry.delegate = self;
      // Set the push type to VoIP
      self.voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP];
  </code></pre>
  <p>Since Xcode 11 and iOS13 there are changes in PushKit to support CallKit, so I'm trying to use UserNotifications instead, as described in <a href="https://developer.apple.com/documentation/pushkit/responding_to_voip_notifications_from_pushkit?language=objc" rel="nofollow noreferrer">Apple's documentation</a></p>
  <pre><code>Important
  If you are unable to support CallKit in your app, you cannot use PushKit to handle push notifications. Instead, configure your app's push notification support with the UserNotifications framework.
  </code></pre>
  <p>I'm registering for remote notifications this way</p>
  <pre><code>- (BOOL) application:(UIApplication*) application didFinishLaunchingWithOptions:(NSDictionary*) launchOptions
  {
      [[UIApplication sharedApplication] registerForRemoteNotifications];
  </code></pre>
  <p>And receiving token:</p>
  <pre><code>- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
  </code></pre>
  <p>But when I'm sending notification from my server, I get DeviceTokenNotForTopic.
  I'm not sure, if UserNotifications framework uses different APNs server or token format is different.</p>