【问题标题】:Apigee send push notification to all devices fails on the serverApigee 向服务器上的所有设备发送推送通知失败
【发布时间】:2014-02-26 09:19:48
【问题描述】:

我正在尝试使用apigee sdk js 发送推送通知的示例。由于我需要向所有设备发送推送消息,因此我更改了 devicePath:

var devicePath = "devices/"+client.getDeviceUUID()+"/notifications";

var devicePath = "devices/*/notifications";

然后调用client.sendPushToDevice 成功并到达apigee 服务器,但它在消息历史记录中显示失败状态并且没有消息被传递。你能告诉我如何解决它吗?

【问题讨论】:

  • 你的通知人叫什么名字?
  • 您在发送消息之前是否注册了所有设备?
  • 通知程序的名称是ApplicationProd,当我使用apigee网站时,设备被注册为推送通知工作。

标签: push-notification push apigee


【解决方案1】:

尝试使用矩阵参数查询所有设备:

var devicePath = "devices;ql=*/notifications";

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多