title: didRegisterForRemoteNotificationsWithDeviceToken not called in ios8, but didRegister...Settings is
body: <p>I followed <a href="https://stackoverflow.com/questions/24426090/get-device-token-in-ios-8">this thread</a>, but the method <code>didRegisterForRemoteNotificationsWithDeviceToken</code> is still not called :</p>
  
  <p>the documentation says :</p>
  
  <blockquote>
    <p>After you call the registerForRemoteNotifications method of the
    UIApplication object, the app calls this method when device
    registration completes successfully</p>
  </blockquote>
  
  <p><code>didRegisterUser</code> appears well, but not <code>did register notif</code>.</p>
  
  <p>Here is my code in the AppDelegate (the app version is 8.1) :</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
      //register notif
      UIUserNotificationType userNotificationTypes = (UIUserNotificationTypeAlert |
                                                      UIUserNotificationTypeBadge |
                                                      UIUserNotificationTypeSound);
      UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:userNotificationTypes categories:nil];
      [application registerUserNotificationSettings:settings];
  
  
      return YES;
  }
  
  - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings
  {
      //register to receive notifications
      [application registerForRemoteNotifications];
      NSLog(@"didRegisterUser");
  }
  
  -(void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {
      NSLog(@"error here : %@", error);//not called
  }
  
  - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
      /*
      // Store the deviceToken in the current installation and save it to Parse.
      PFInstallation *currentInstallation = [PFInstallation currentInstallation];
      [currentInstallation setDeviceTokenFromData:deviceToken];
      currentInstallation.channels = @[ @"global" ];
      [currentInstallation saveInBackground];
       */
      NSLog(@"did register notif");//not called
  }
  </code></pre>
  
  <p>I also have background mode -> remote notification in the info.plist.</p>