The following method keeps returning the same value:
[[UIApplication sharedApplication] isRegisteredForRemoteNotifications];
Every time this code runs, the results is YES. Even when I go into the "Settings" app and set push notifications to "off" for my app, when the code above runs, it evaluates to YES.
Other details:
* I'm running the app on got an iphone that has iOS 8.1.3
* I'm running the app in Xcode 6.1 and I've got the phone physically attached to my machine
Any idea why the value of "isRegisteredForRemoteNotifications" doesn't change?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…