Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL

http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

按照文章的链接的步骤,实现GCM-HTTP在client 和app server之间的部署。链接一下供须要的同学參考。


在从本地Server移植到web server遇到的问题:

1.Google Api Key是绑定serverIP的,所以在本地换到Web的时候,Google Api Key须要又一次申请;

2.假设server端CURL不可用,那么推送就会出问题,须要安装CURL模块

參考链接:

http://stackoverflow.com/questions/22004716/gcm-is-not-working-on-live-server

http://stackoverflow.com/questions/2939820/how-to-enable-curl-installed-ubuntu-lamp-stack

http://www.2cto.com/os/201102/84031.html

posted @ 2015-12-11 19:53  mengfanrong  阅读(228)  评论(0编辑  收藏  举报