声明:最简单的那种方式实现离线消息推送
1.[AVOSCloud registerForRemoteNotification];

AVInstallation *currentInstallation = [AVInstallation currentInstallation];
[currentInstallation setDeviceTokenFromData:deviceToken];
[currentInstallation saveInBackground];

以上代码均已在对应函数里添加
2.
3.


4.

最后查看推送记录:

我的APPID:RwXNYUlRG9v6dur1Ul0SsImO-gzGzoHsz

你好,从我们的记录来看,能发送成功的应该是:3d59b01e4efc1f494ba3a1e29c725895005636de276af8538e3efa5b9f1756f3
这个 token 而非上述图片中的 token。
发送失败的原因是,deviceProfile 设置为 DevCertificates 时,我们会按照 DevCertificates 去查找证书,但这个证书是不存在的。虽然应用下 dev 证书名为 DevCertificates 但 dev 和 prod 是两个特殊证书,他们两个的名字固定为 prod 和 dev。只有自定义证书才能自行定义名称去做查询。请先确认目标发送消息的 token 是否均为 dev 证书绑定的 token,之后将 deviceProfile 字段清空后再重试。谢谢!