문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top