Recently, I've tried to learn GCM and make a test application that will get the push notification for android through androids official site. However, I find the tutorial difficult for me. Are there any simple and easy tutorial for a novice like me to learn GCM push notification without the use of a server for android ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
there are lots of tutorial for GCM, here are some one :
- https://developer.android.com/google/gcm/index.html
- https://developer.android.com/google/gcm/client.html
- http://developer.android.com/google/gcm/gs.html
- http://javapapers.com/android/google-cloud-messaging-gcm-for-android-and-push-notifications/
- http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
I hope above point will help you.
回答2:
https://console.developers.google.com/ Click the above link to registered the application and On "Google Cloud Messaging for Android" API. Copy the Browser Key and Sender/Project Key.
Follow a follwing link.
http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ https://developer.android.com/google/gcm/server.html