【问题标题】:Push Notifications not working on iOS in development mode推送通知在开发模式下无法在 iOS 上运行
【发布时间】:2013-02-14 12:07:08
【问题描述】:

在过去的 2 天里,我试图在 iOS 应用上获取推送通知,但没有任何成功。应用程序正在使用正确的配置文件、应用程序标识符和权利。该应用程序甚至收到了成功注册后收到的 didRegisterForRemoteNotification 回调。我从该回调中获取设备令牌,并使用它通过 Urban Airship 和我的私人服务器向该设备发送通知。我的应用程序从未收到此通知。在通知设置中为此应用程序启用了通知。

我能想到的一件事是,我在设备控制台中不断收到以下错误

Feb 14 03:49:55 unknown amfid[1098] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Feb 14 03:49:55 unknown amfid[1098] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
Feb 14 03:49:55 unknown amfid[1098] <Error>: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Feb 14 03:49:55 unknown amfid[1098] <Error>: entitlement 'aps-environment' has value not permitted by a provisioning profile
Feb 14 03:49:55 unknown amfid[1098] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile

我尝试了一切来更改权利以修复此错误,但无济于事。最后,我只是从移动配置文件中复制了权利并将其粘贴到权利文件中。

谁能帮我解决问题?

【问题讨论】:

    标签: ios push-notification apple-push-notifications entitlements code-signing-entitlements


    【解决方案1】:

    我更改了设备,现在我能够接收推送通知,即使我在控制台窗口中遇到同样的错误。

    【讨论】:

      猜你喜欢
      • 2017-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多