通知中心不会在某些设备上显示应用

时间:2012-11-12 15:21:01

标签: ios xcode apple-push-notifications

我已经在应用商店中发布了启用推送通知的应用,并且还在实时状态下对其进行了测试,以确保它们实际上正常工作。当某些用户声明应用程序未显示在通知中心时,问题就出现了。大多数用户都没有这方面的问题,一旦安装了应用程序,它就会询问“您是否希望接收推送通知”,但有些用户从未收到此消息。我已经实现了正确的方法,因为这对大多数人都有效。有没有人遇到过这个问题,有没有解决这个问题?

1 个答案:

答案 0 :(得分:2)

我注意到有50个观点,我确实开了一个Apple的案例,因为我没有收到回复。结果是一封电子邮件说明我没有aps-environment权利。这是没有意义的,因为我有几部手机显示它们已启用推送....

然而,这是我的问题的解决方案。

    
I'm responding to your question about your app not receiving push notifications 
after being released on the App Store.

The first thing I'd check is the code signing entitlements of your app. Since 
your app is free, I downloaded a copy and checked its code signing entitlements
as discussed in the section "Error Delegate Callback" of Technical Note TN2265
"Troubleshooting Push Notifications":

developer.apple.com/library/ios/technotes/tn2265/_index.html#//apple_ref/doc/uid/DTS40010376-CH1-SUBSECTION2.

$ codesign -d --entitlements - /Users/me/Music/iTunes/iTunes\ Media/Mobile\ Applications/some.app 
Executable=/Users/me/Music/iTunes/iTunes Media/Mobile Applications/some.app
??qq?


plist version="1.0">
dict>
    key>application-identifier /key>
    string>12346789.com.XXXX.XXXX /string>
    key>keychain-access-groups /key>
    array>
        string>123465789.com.XXXXXXX.XXXXX /string>
    /array>
/dict>
/plist>

Note that there is no aps-environment entitlement, which is required in order to register for push notifications. ...