Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS push notifications: App not asking for permissions

I am trying to enable push notifications on my existing iOS app. I have gone through all the steps mentioned on this webpage:

http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1

Everything on the server side is implemented. I created a new certificate for push notifications, and I ran my app using the existing provisioning profile I have. Yet it doesn't ask me for permissions for push notifications. Maybe I have missed something out? Or do I have to create new provisioning profiles? I am using a wildcard provisioning profile.

like image 486
Rameez Hussain Avatar asked Oct 04 '22 17:10

Rameez Hussain


1 Answers

iOS prompts for permission when your app calls application:registerForRemoteNotificationTypes: generally called in your Application's application:didFinishLaunchingWithOptions method.

Don't forget to send the device token to your APNs server in the application:didRegisterForRemoteNotificationsWithDeviceToken: delegate method.

You will most likely need to update your app to add such functionality, and update the App ID and provisioning profile to allow APNs.

like image 154
Marcus Adams Avatar answered Oct 07 '22 20:10

Marcus Adams