Www. androidhive. info201210android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql according to the steps in the link to achieve the GCM-HTTP in the client and appserver between the deployment, link for the students to reference. When porting data from a local Server to a webserver
Http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ according to the steps in the link, to achieve the GCM-HTTP in the client and app server between the deployment, link for the students to reference. When porting data from a local Server to a web server
Http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
According to the steps in the link, the GCM-HTTP is deployed between the client and the app server.
Problems encountered when porting data from a local Server to a web server:
1. The Google Api Key is bound to the server IP address. Therefore, when you change the local IP address to the Web address, you need to apply for a new Google Api Key;
2. If the server CURL is unavailable, the push will fail and the CURL module needs to be installed.
Reference link:
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