我在设备中运行IBM-MobileFirst提供的推送通知示例。而且我收到错误"意外错误"。
请参阅随附的屏幕截图以供参考。
让我知道我错过了任何配置吗?并且还请指导此项目中使用的适配器(Java适配器,HTTP适配器或javascript适配器)
编辑:
我从link下的"推送通知"下载了样本。类
编辑:
答案 0 :(得分:0)
您说您正在使用MobileFirst Platform Foundation 7.1,但您已经下载了Worklight 6.0的示例。
您也未能反复回答您提出的问题,特别是这是本机还是混合样本。但无论如何,这似乎是您正在寻找的样本:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/notifications/push-notifications-overview/push-notifications-in-hybrid-applications/event-source-notifications-in-hybrid-applications/
您提到您只尝试在没有任何设置的情况下运行它,那么您希望它如何工作?由于这是Android,您还需要创建服务器密钥和senderId。请阅读文档:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/notifications/push-notifications-overview/push-notifications-in-hybrid-applications/