在过去的几天里,我一直希望使用 Cloud 服务IBM Bluemix在我的IBM Worklight项目中实现推送通知 . 根据我的要求,我没有得到任何好的资源/样本 .
请帮助我使用IBM Bluemix服务在IBM Worklight移动应用程序中找到推送通知的解决方案 . 我试过以下参考文献:
http://www.ibm.com/developerworks/library/mo-android-push-app/index.html
https://github.com/ibm-bluemix-mobile-services/bms-samples-cordova-hellopush
2 回答
Bluemix推送通知实现与Worklight应用程序不兼容 . 如果您想在Worklight应用程序中使用推送通知,请使用Worklight提供的推送API:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/notifications/push-notifications-overview/
如果您想成为反叛者并尝试使用Bluemix上的IBM推送通知在Worklight中使用混合应用程序,您可以尝试按照我在this answer to "How to implement Push Notification in Hybrid Mobile Application using Bluemix"中概述的步骤进行操作
但是,由于Idan提到的一些限制,您只能使Android工作 . 我们目前没有为iOS工作 .
另外,查看今天发布的这些文章,以获得更准确和最新的教程(原生ios和android)
http://www.ibm.com/developerworks/library/mo-mobile-application-security-bluemix-mobile-services-1-trs/index.html
http://www.ibm.com/developerworks/library/mo-mobile-application-security-bluemix-mobile-services-2-trs/index.html