How to send an Android Push Message using Intels App-Framework?

对着背影说爱祢 提交于 2019-12-25 02:47:28

问题


I'm looking for a solution to send a Push Message from PHP in Intels App-Framework, but I can't find any good solution. I have found this: https://gist.github.com/prime31/5675017

But how can I get the DEVICE_REGISTRATION_ID? It's very difficult to find some code or solution.


回答1:


Ive found the Solution. I have forgott to type the IP 0.0.0.0/0 into the Google API Console. And i added the Google API Key and Projectnumber by the Push Category on Build Window.

Then i copy paste the code from http://docs.appmobi.com/index.php/push-messages/ into index_user_scripts.js (only number 2 and 3). Number 1 goes to index.html on the header section. Now it works fine, i can send messages from the Services Tab.



来源:https://stackoverflow.com/questions/23780858/how-to-send-an-android-push-message-using-intels-app-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!