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.
source share