title: IOS 8 push notification check returns wrong UIRemoteNotificationType
body: <p>I'm trying to check if PushNotifications for my app are enabled. </p>
  
  <p>In AppDelegate.m I do register app for remote notifications, and in Settings on iPhone (iOS 8) Push Notifications for this app are enabled.</p>
  
  <p>I've googled to methods:</p>
  
  <pre><code>UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
  
  BOOL check = [[UIApplication sharedApplication] isRegisteredForRemoteNotifications];
  </code></pre>
  
  <p>As the result, <em>types = UIRemoteNotificationTypeNone and check = NO</em>.</p>
  
  <p>I'm using this <a href="https://stackoverflow.com/questions/24454033/registerforremotenotificationtypes-is-not-supported-in-ios-8-0-and-later">code sample</a> to register application for Push Notifications:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
  {
      //-- Set Notification
      if ([application respondsToSelector:@selector(isRegisteredForRemoteNotifications)]) 
      {
             // iOS 8 Notifications
             [application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
  
             [application registerForRemoteNotifications];
      }
      else
      {
            // iOS &lt; 8 Notifications
            [application registerForRemoteNotificationTypes:
                       (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound)];
      }
  
       //--- your custom code
       return YES;
  }
  </code></pre>
  
  <p>What is the problem here?</p>