Quickblox iOS-无法接收推送通知

时间:2018-07-17 08:45:37

标签: ios push-notification quickblox

我遵循了Quickblox代码示例“ Push Notifications API入门”:https://quickblox.com/developers/SimpleSample-messages_users-ios

这是我的Quickblox应用程序上的推送通知设置页面的快照:

enter image description here

但是,我仍然无法在我的iOS设备上收到通知。

这是我为测试推送通知功能所做的事情:

    从Quickblox管理面板通过环境“测试”和频道“ iOS”推送
  1. 通知 ==>成功    Apns频道。通知已成功添加到队列

    但是我没有收到任何通知...

    转到“队列”选项卡,状态为“已发送”,消息日志如下:

    enter image description here

    详细日志:

    {“ notification”:{“ id”:15854525,“ badge”:null,“ device_token”:“ 21837ff3962805304ebafd83f14c3b0e6fc16e8dcc0cc38c1423046be000c547”,“ sound”:“ default”,“ alert”:“ test”,“ data”:{ “ headers”:{“ apns-topic”:“ com.test.test”}},“ expiry”:86400,“ delivered”:false,“ delivered_at”:null,“ failed”:false,“ failed_at”:null ,“ fail_after”:“ 2018-07-17T09:21:58 + 00:00”,“重试”:30,“ error_code”:null,“ error_description”:null,“ deliver_after”:“ 2018-07-17T08: 24:28 + 00:00“,” alert_is_json“:null,” app_id“:24291,” collapse_key“:null,” delay_while_idle“:null,” registration_ids“:null,” uri“:null,” priority“:null ,“ url_args”:null,“类别”:null,“ content_available”:false,“ mutable_content”:false,“ notification”:null,“ type”:“ Rpush :: Client :: Redis :: Apns :: Notification” ,“ event_id”:24974634,“ event_date”:“ 2018-07-17T08:21:58 + 00:00”},“ log”:[{“ device_token”:“ 21837ff3962805304ebafd83f14c3b0e6fc16e8dcc0cc38c1423046be000c547”,“ delivered_at”:null, “:null,” error_code“:null,” error_description“:null},{” device_token“:”“ de9b077f441c55650c3f7bea22a82 af6fcad23fafe5a775fcdd4e34e644879ab“,” delivered_at“:null,” failed_at“:null,” error_code“:null,” error_description“:null},{” device_token“:” d021085c78ba18b2260590678b4cef09a40d6b4c error_code“:null,” error_description“:null}]}

  2. 当我尝试在环境“实时”和频道“ iOS”中推送通知时,它显示:“错误 没有收件人。至少应为一个用户订阅“ apns”(通过SDK或REST API)。但是,我的设备都已订阅了apn,并且还会显示在“订阅标签”中 enter image description here

  3. 我还尝试从应用程序一侧推送通知,这是有关通知的详细日志:

    enter image description here

    {“ notification”:{“ id”:15852625,“ badge”:null,“ device_token”:“ 1b76a177a25a573d53166783905ea8316362f0bbc873e5777739c60c5dec4734”,“ sound”:“ ringtone.wav”,“ alert”:“测试正在呼叫您”。 ,“数据”:{“ VOIPCall”:“ 1”,“标题”:{“ apns-topic”:“ com.test.test.voip”}},“到期时间”:86400,“已交付”:false, delivery_at“:null,” failed“:false,” failed_at“:null,” fail_after“:” 2018-07-17T08:11:53 + 00:00“,” retries“:38,” error_code“:null,” error_description“:null,” deliver_after“:” 2018-07-17T07:15:07 + 00:00“,” alert_is_json“:null,” app_id“:24274,” collapse_key“:null,” delay_while_idle“:null,” registration_ids”:null,“ uri”:null,“ priority”:null,“ url_args”:null,“ category”:null,“ content_available”:false,“ mutable_content”:false,“ notification”:null,“ type” :“ Rpush :: Client :: Redis :: Apns :: Notification”,“ event_id”:24973812,“ event_date”:“ 2018-07-17T07:11:53 + 00:00”},“ log”:[{ “ device_token”:“ 1b76a177a25a573d53166783905ea8316362f0bbc873e5777739c60c5dec4734”,“ delivered_at”:null,“ failed_at”:null,“ error_code”:null,“ error_description”:null}]}}

我在哪里做错了?

0 个答案:

没有答案