angularjs - IBM 推送通知 : Not Found - The target resource 'PushDevice' does not exist

标签 angularjs node.js ibm-cloud ibm-mobile-services

我尝试使用 API swagger PUT/apps/{applicationId}/devices/{deviceId} at https://mobile.ng.bluemix.net/imfpush/#!/devices/put_apps_applicationId_devices_deviceId 。但我有一条错误消息

{
  "code": "FPWSE0001E",
  "message": "Not Found - The target resource 'PushDevice' does not exist. Check the '23e107c7292d17a772914af05c23d10750613aaa' parameter."
}

请帮我说说你的想法

最佳答案

The application or the device doesn't exist

{
  "code": "FPWSE0001E",
  "message": "Not Found - Targeted resource 'PushApplication' does not exist. Check the 'UnknownApplication' parameter"
}

表示您提供的应用程序或设备不存在。

您似乎正在尝试通过 REST API 更新设备注册,因此您需要确保通过获取当前设备列表来检查当前拥有的所有已注册设备:

GET/apps/{applicationId}/devices

我不确定您的特定用例是什么,但在大多数情况下,您不必更新设备注册,并且您需要的任何类型的行为都将包含在客户端 SDK 中。 See the docs了解更多信息。

关于angularjs - IBM 推送通知 : Not Found - The target resource 'PushDevice' does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40970452/

相关文章:

mysql - 无法在 Node JS/Express JS 中集成 HTML DOM

javascript - angularjs-bootstrap-calendar 加载了大量事件

javascript - 页面刷新时的 Angular 'Cannot GET' 路由

node.js - Mongoose OpenShift 连接

Node.js 找不到 mysql-database 服务

go - 将 go 应用程序部署到 Bluemix 后服务器无法启动

Angularjs mdDialog - 如何将数据发送回我的第一个 Controller

javascript - jQuery追加未将ajax按钮设置为元素追加

javascript - 为什么nodejs中的sleep不能按预期工作

docker - 如何从Bluemix Hub中删除Docker镜像?