GCM4Public DEMO open sou...

GCM4Public DEMO open sou...

icon_staricon_staricon_staricon_star_halficon_star_none
办公商务|166KB
扫码打开当前页下载
安装豌豆荚
下载相似应用
时间2024-07-24 16:25
版本8.3.4.0
要求
APP豌豆荚

精品推荐

01
QQ
QQ
2亿人下载
02
微信
微信
2.3亿人下载
03
抖音
抖音
8069.3万人下载
04
快手
快手
6299.4万人下载
05
抖音极速版
抖音极速版
1109.6万人下载
06
快手极速版
快手极速版
2327.1万人下载
07
酷狗音乐
酷狗音乐
8300.7万人下载
08
百度
百度
3505.4万人下载
09
QQ音乐
QQ音乐
3301.1万人下载
10
作业帮
作业帮
2583.6万人下载

应用介绍

GCM4Public DEMO open sou...应用简介

GCM4Public open-source GCM serviceThe eventDuring the +GDG Vilnius event Hackathon: Google Cloud Messaging for Android, this open source project was created:https://github.com/gdgvilnius/GCM4Public-GAE-ServerThe serverThe Demo Android application using this GCM4Public service is open here:https://github.com/gdgvilnius/GCM4Public-Android-ClientThis is the Java class which sends GCM message:https://github.com/gdgvilnius/GCM4Public-GAE-Server/blob/master/src/lt/andro/gcm4public/SendGCM2Clients.javaThe clientTo use Google Cloud Messaging for Android you need to register at Google's API console:https://code.google.com/apis/consoleThis is the Java class responsible for handling GCM messages and registers on GCM4Public server:https://github.com/gdgvilnius/GCM4Public-Android-Client/blob/master/src/lt/andro/gcm4public/GCMIntentService.javaHere you can see how device initiates registration on the GCM:https://github.com/gdgvilnius/GCM4Public-Android-Client/blob/master/src/lt/andro/gcm4public/MainActivity.javaSending messagesYou'll get the project number (aka senderId) and API Key. These two are used in this service to send GCM notifications. And you need to provide it in this form: https://gcm4public.appspot.com/The service is secure, because only senderId and phones registrationId are stored. The API key is not saved on server and you need to provide it every time you want to send a message to the server.The senderId is used to filter app's users, so one application would not disturb other's users.Multiple applications can use this single server: https://gcm4public.appspot.com/Google App EngineIt's running on Google App Engine so it has some limitations, but I think, it might be running ok for few hundred small apps. If you have tens of thousands users, please fork the project on github and put on your separate Google App Engine account with separate daily limits.Other resourcesBlog post: http://www.andro.lt/2012/11/google-cloud-messaging-for-android.htmlGoogle Cloud Messaging for Android by Francesco Nerieri:https://developers.google.com/events/io/sessions/gooio2012/100/and get the slides here:http://commondatastorage.googleapis.com/io2012/presentations/live%20to%20website/100.pdfIf you want to read more, here is the link on developer.android.com about GCM for Android:http://developer.android.com/guide/google/gcm/gs.html
GCM4Public DEMO open sou...截图1
GCM4Public DEMO open sou...截图2

GCM4Public DEMO open sou...2025更新内容

更稳定、更优质,邀您一起体验。