iPad没有调用didRegisterForRemoteNotificationsWithDeviceToken [英] iPad didn't call didRegisterForRemoteNotificationsWithDeviceToken
问题描述
我正在尝试在iPad上获取设备令牌以进行远程推送通知;
registerForRemoteNotificationTypes被称为okay,没有错误,但didRegisterForRemoteNotificationsWithDeviceToken也没有被调用;
应用程序出现在设置/通知中;
我做错了什么?
I'm trying to get device token in iPad for remote push notifications; registerForRemoteNotificationTypes is called okay, no error, but didRegisterForRemoteNotificationsWithDeviceToken also not been called; Application is appear in Settings/Notification; What's I doing wrong?
iPhone正在成功注册。
iPhone is registering successfully.
谢谢
PS:iPad 1,iOs 5.1
PS: iPad 1, iOs 5.1
推荐答案
嗯,问题在生产中解决了签署和供应,但不在开发中。当我存档设备的应用程序并通过iTunes加载它时,推送通知正在运行。非常奇怪的行为。
Well, problem was solved in production sign and provisioning, but not in development. When I archive application for device and load it through iTunes, push notifications is working. Very strange behaviour.
这篇关于iPad没有调用didRegisterForRemoteNotificationsWithDeviceToken的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!