IOS push notifications: application does not request permission

I am trying to enable push notifications in my existing iOS application. I looked through all the steps mentioned on this web page:

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 launched the application using the existing provisioning profile that I have. However, it does not ask me for permission to push notifications. Maybe I missed something? Or do I need to create new training profiles? I am using a lookup lookup profile.

+4
source share
1 answer

iOS asks for permission when your application calls application:registerForRemoteNotificationTypes: typically called in your application application:didFinishLaunchingWithOptions .

Remember to send the device token to the APN server in the delegate method application:didRegisterForRemoteNotificationsWithDeviceToken:

You will most likely need to update the application to add such features, and update the application identifier and provisioning profile to enable APN.

+3
source

Source: https://habr.com/ru/post/1488092/


All Articles