【问题标题】:Push Notifications not delivered quickblox未发送推送通知 quickblox
【发布时间】:2018-07-03 12:52:03
【问题描述】:

我正在尝试为离线用户发送推送通知,但它没有发送到设备

环境细节: ios 聊天应用,我使用的是 cocoapods 的最新版本

预期行为:它应该在设备上显示推送通知

实际行为 我已经上传了证书, it is showing valid

我已在订阅中检查了我的设备 udid,it is showing my device udid

发送的通知也是shows in queue on quickblox这里是发送推送的日志,在delivered中显示为NULL,没有错误

{
  "notification": {
    "id": 15460780,
    "badge": 45,
    "device_token": "0780db28ac60e37390e067f5b1d88688d804f594152827b1b28f86e670669530",
    "sound": "default",
    "alert": "Test User: Hello",
    "data": {
      "dialog_id": "5b3b4b9ba0eb474bbc0244eb",
      "user_id": 53886466,
      "message_id": "5b3b6a6b2d3084b447b7ad3d",
      "badge": 45,
      "headers": {
        "apns-topic": "com.company.app"
      },
      "__rpush_content_available__": true,
      "__rpush_mutable_content__": true
    },
    "expiry": 86400,
    "delivered": false,
    "delivered_at": null,
    "failed": false,
    "failed_at": null,
    "fail_after": "2018-07-03T13:22:05+00:00",
    "retries": 118,
    "error_code": null,
    "error_description": null,
    "deliver_after": "2018-07-03T12:31:57+00:00",
    "alert_is_json": null,
    "app_id": 23880,
    "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": 24743581,
    "event_date": "2018-07-03T12:22:05+00:00"
  },
  "log": [
    {
      "device_token": "0780db28ac60e37390e067f5b1d88688d804f594152827b1b28f86e670669530",
      "delivered_at": null,
      "failed_at": null,
      "error_code": null,
      "error_description": null
    }
  ]
}

我也尝试通过第三方 (pushtry.com) 使用相同的证书发送推送,它正在发送推送,但使用 quickblox,它没有显示任何推送通知

【问题讨论】:

    标签: ios swift xcode chat quickblox


    【解决方案1】:

    看起来这是 Quickblox 服务器端的问题。可能他们没有根据 APNS 的最新更改调整设备中的服务器。我请求他们的支持,但他们没有回答。

    【讨论】:

    • 同样,我在 10 天前已经向他们发送了支持消息,但我没有收到他们的任何回复 :(
    【解决方案2】:

    苹果有效载荷的json推送通知应采用以下格式

    {
        "aps": {
            "alert": "Hello World",
            "sound": "default"
        },
        "Person": {
            "Address": "this is a test address",
            "Name": "First Name",
            "Number": "023232323233"
        }
    }
    

    【讨论】:

    • 是的,按照 Apple 的要求,每件事都是正确的,即使它显示在 quickblox 的推送队列列表中,但它没有传递到任何奇怪的设备
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多