I have an app that allows sends the user an alert through the notification center when an event date is approaching. But, when I run the app on my device, I go to the “Notifications” tab in the Settings, and my application doesn’t appear in there. I also added this code in my didFinishLaunchingWithOptions: method in the App Delegate at the bottom, and I thought it would do the trick:
[[UIApplication sharedApplication]
registerForRemoteNotificationTypes:
UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeAlert |
UIRemoteNotificationTypeSound];
I’m aware that the code is usually only used for push notifications, but apparently this code prompts the user asking them if they would like to turn notifications on, rather than installing the app with them off by default.
Is there any other code that I should be adding to make it appear in the Notifications tab in the Settings?
Thank you!
In the development portal, make sure that push notifications is configured for your App ID. Once that’s configured, you’ll need to download and install the modified profile.