在IBM-Mobilefirst意外错误中推送通知

时间:2016-11-25 06:57:05

标签: android push-notification ibm-mobilefirst

我在设备中运行IBM-MobileFirst提供的推送通知示例。而且我收到错误"意外错误"。

请参阅随附的屏幕截图以供参考。

enter image description here

让我知道我错过了任何配置吗?并且还请指导此项目中使用的适配器(Java适配器,HTTP适配器或javascript适配器)

编辑:

我从link下的"推送通知"下载了样本。类

当我打开应用程序时,我发现服务器无法处理错误 enter image description here

编辑:

  1. 我正在使用Worklight版本7.1.0和eclipse Juno SR2
  2. 我从link
  3. 下载了示例
  4. 我只是将从链接下载的应用程序导入eclipse IDE。在应用程序中拥有android环境和js,html文件。

1 个答案:

答案 0 :(得分:0)

  1. 您说您正在使用MobileFirst Platform Foundation 7.1,但您已经下载了Worklight 6.0的示例。

  2. 您也未能反复回答您提出的问题,特别是这是本机还是混合样本。但无论如何,这似乎是您正在寻找的样本:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/notifications/push-notifications-overview/push-notifications-in-hybrid-applications/event-source-notifications-in-hybrid-applications/

  3. 您提到您只尝试在没有任何设置的情况下运行它,那么您希望它如何工作?由于这是Android,您还需要创建服务器密钥和senderId。请阅读文档:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/notifications/push-notifications-overview/push-notifications-in-hybrid-applications/