Vla*_*lex 7 apple-push-notifications ios testflight
非静默推送通知不适用于iOS 10.0的非开发人员设备.证书或配置文件没有问题,APNS也没有响应"错误"任何其他错误,所以看起来令牌有效(我试图从服务器和名为Pusher的本地工具发送通知,结果是相同).
当我将设备插入Mac并查看控制台日志时,我可以看到以下行:
default 15:43:26.138766 +0300 apsd 2017-07-12 15:43:26 +0300 apsd[86]: isAppSpecificTokenValid? <cf0d4bad 846685a1 0b0e4e34 0e1ad03e 74c00df2 295a23e3 7586f94c 78c46284> found cached token NO
default 15:43:26.139477 +0300 apsd 2017-07-12 15:43:26 +0300 apsd[86]: Received incoming push notification for topic: <my.app.id> but for a completely unknown token <cf0d4bad 846685a1 0b0e4e34 0e1ad03e 74c00df2 295a23e3 7586f94c 78c46284>
default 15:43:26.140523 +0300 apsd 2017-07-12 15:43:26 +0300 apsd[86]: <APSCourier: 0x1004109c0>: Responding with REMOVED status for message received with topic: '<my.app.id>' to device token (instead of per-app token)
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚重现此错误的步骤,但它可能与在TestFlight版本上安装AppStore版本有关.
但这可能与安装AppStore版本而不是TestFlight版本有关。
对于这是一个问题,听起来您并没有在registerForRemoteNotifications每次应用程序启动时都执行此操作。您应该每次都执行此调用(并且可能在后端更新它),因为它有可能发生更改,并且用户也有可能在应用程序未运行时更改了应用程序的权限。
| 归档时间: |
|
| 查看次数: |
363 次 |
| 最近记录: |