this is the code i used for the RemoteNotificationType:
NSUInteger rntypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
The error i got was this:
2014-09-29 15:46:47.416 Dummy[258:21766] enabledRemoteNotificationTypes is not supported in iOS 8.0 and later.
Would be a great help if someone could give me the solution.
Use with this condition to give support in both iOS 7 and prior iOS 8
You can also use this code:
Or this one if you only want to check the user is registered for remote notifications:
Please use following methods -
or
to retrieve user-enabled remote notification and user notification settings in iOS 8.