Upvote:2

  if ($this->sendNotification($message['device_token'], 
                              $message['payload'])) {       
  } else {  // failed to deliver
      $this->reconnectToAPNS();
     }

More Answer related to the Same Query

Upvote:0

- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error {
NSLog(@"Failed to get token, error: %@", error);
}

Credit Goes to: stackoverflow.com

Related question with same questions but different answers