Take the 2-minute tour ×

When one application supports remote notifications, iOS will ask the user if the app should be allowed to push remote notification at the first launch.

If you tap the "DON'T ALLOW" button, the iOS system will turn off all notification options(show in notification center, badge, etc.) in Settings-> Notification-> AppName.

But actually, I found some apps (such as Angry Birds) still turns on some notification options in Settings-> Notification-> AppName even if I clicked "DON'T ALLOW" button, then, how did they do that?

Is there any way to turn on app's notification options by code?

share|improve this question
add comment

2 Answers

I don't think you can do that. Aside from the application asking the user when you have the registerForRemoteNotifications in the didFinishLaunchingWithOptions:

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:...];

You don't have control over whether the user accepts or rejects notifications.

share|improve this answer
I know, I know. I installed Angry Birds (it's free now) on my iPhone5 yesterday, and I am sure I clicked "DON'T ALLOW" button, but when I checked Settings-> Notification-> Angry Birds the notification options was still on. it puzzle me... –  ricky Mar 8 '13 at 3:24
Try it again, @ricky, to make sure. Delete, reinstall, and click "Don't allow". –  Michael Petrotta Mar 8 '13 at 4:24
If I reinstall it, it will not show the notification alert. I just found another app --Blux Pro exit the same problem. –  ricky Mar 8 '13 at 5:30
add comment

You're confusing push notifications with all types of notifications, which can include local notifications. The settings you refer control all types of notification.

share|improve this answer
add comment

Your Answer


