Solution

UIRemoteNotificationType notifications =[[UIApplication sharedApplication] enabledRemoteNotificationTypes];