0

I want to find out if the user already enabled the pus notification,How to do this ?

I have tried with this..

  UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
  if (types ==  UIRemoteNotificationTypeNone){

       NSLog(@"Push is off");

    }

But its not working and "types" always gives the value "7"

user2115266
  • 137
  • 1
  • 12
  • See this link http://stackoverflow.com/questions/1535403/determine-on-iphone-if-user-has-enabled-push-notifications – Baby Groot Apr 04 '13 at 09:53

1 Answers1

0

UIRemoteNotificationType Types :

0 - None
1 - Badge,
2 - Sound,
4 - Alert,
5 - Badge & Alert Only,
6 - Alert & Sound Only,
7 - All Badge,Sound,Alert.
8 - NewsstandContentAvailability.
Vedchi
  • 1,200
  • 6
  • 14