I'm writing an IOS app with Push Notifications.
I call registerForRemoteNotificationTypes
.
When I run it on my iPhone 4S IOS 5.1, i get didRegisterForRemoteNotificationsWithDeviceToken
.
However
When I run it on my iPad 1 IOS 5.1.1 or my iPad 2 IOS 6.1.3 I get didFailToRegisterForRemoteNotificationsWithError
.
The message is "no valid 'aps-environment' entitlement string found for application".
What can I do to make it succeed on the iPads too?
创建一个新的Provisioning Profile并在Xcode中选择Provisioning Profile将清除错误!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.