title: iOS 8 enabled device not receiving PUSH notifications after code update
body: <p>I recently upgraded one of my test iphones to iOS 8 and then upgraded the PUSH registration code
  as below (using xCode 6)</p>
  
  <pre><code>-(BOOL)hasNotificationsEnabled {
  
      NSString *iOSversion = [[UIDevice currentDevice] systemVersion];
      NSString *prefix = [[iOSversion componentsSeparatedByString:@"."] firstObject];
      float versionVal = [prefix floatValue];
  
  
      if (versionVal &gt;= 8)
      {
  
          NSLog(@"%@", [[UIApplication sharedApplication]  currentUserNotificationSettings]);
          //The output of this log shows that the app is registered for PUSH so should receive them
  
          if ([[UIApplication sharedApplication] currentUserNotificationSettings].types != UIUserNotificationTypeNone) {
  
              return YES;
  
          }
  
      }
      else
      {
          UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
          if (types != UIRemoteNotificationTypeNone){
              return YES;
          }
  
      }
  
      return NO;
  }
  
  -(void)registerForPUSHNotifications {
  
      NSString *iOSversion = [[UIDevice currentDevice] systemVersion];
      NSString *prefix = [[iOSversion componentsSeparatedByString:@"."] firstObject];
      float versionVal = [prefix floatValue];
  
  
      if (versionVal &gt;= 8)
      {
  
  
              //for iOS8
          UIUserNotificationSettings *settings =
          [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert |
           UIUserNotificationTypeBadge |
           UIUserNotificationTypeSound categories:nil];
          [[UIApplication sharedApplication] registerUserNotificationSettings:settings];
          [[UIApplication sharedApplication] registerForRemoteNotifications];
  
  
      }
      else
      {
  
              [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
  
  
      }
  }
  </code></pre>
  
  <p>Despite this upgrade and the fact that [[UIApplication sharedApplication]  currentUserNotificationSettings] shows PUSH is enabled for the device, I am not receiving PUSH notifications. </p>
  
  <p>I am using Parse and doing everything by the book as far as they are concerned ( <a href="https://parse.com/tutorials/ios-push-notifications" rel="nofollow noreferrer">https://parse.com/tutorials/ios-push-notifications</a>) .</p>
  
  <p>Is anyone experiencing the same issue? Is there something else that I may be missing ?</p>