Our website uses necessary cookies to enable basic functions and optional cookies to help us to enhance your user experience. Learn more about our cookie policy by clicking "Learn More".
Accept All Only Necessary Cookies
GCM4Public DEMO open source आइकन

1.0 by Vilius Kraujutis


Feb 5, 2016

GCM4Public DEMO open source के बारे में

लाखों नवीनतम Android ऐप्स, गेम्स, संगीत, फ़िल्में, टीवी, पुस्तकें, पत्रिकाएं आदि का आनंद लें. आपके सभी डिवाइस पर, किसी भी समय, कहीं भी.

GCM4Public open-source GCM service

The event

During the +GDG Vilnius event Hackathon: Google Cloud Messaging for Android, this open source project was created:

https://github.com/gdgvilnius/GCM4Public-GAE-Server

The server

The Demo Android application using this GCM4Public service is open here:

https://github.com/gdgvilnius/GCM4Public-Android-Client

This is the Java class which sends GCM message:

https://github.com/gdgvilnius/GCM4Public-GAE-Server/blob/master/src/lt/andro/gcm4public/SendGCM2Clients.java

The client

To use Google Cloud Messaging for Android you need to register at Google's API console:

https://code.google.com/apis/console

This 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.java

Here you can see how device initiates registration on the GCM:

https://github.com/gdgvilnius/GCM4Public-Android-Client/blob/master/src/lt/andro/gcm4public/MainActivity.java

Sending messages

You'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 Engine

It'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 resources

Blog post: http://www.andro.lt/2012/11/google-cloud-messaging-for-android.html

Google 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.pdf

If 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

नवीनतम संस्करण 1.0 में नया क्या है

Last updated on Feb 5, 2016

Initial version.

अनुवाद लोड हो रहा है...

अतिरिक्त ऐप जानकारी

नवीनतम संस्करण

निवेदन GCM4Public DEMO open source अपडेट 1.0

द्वारा डाली गई

Satyam Kabiraj

Android ज़रूरी है

Android 2.2+

अधिक दिखाएं

GCM4Public DEMO open source स्क्रीनशॉट

टिप्पणी लोड हो रहा है...
APKPure की सदस्यता लें
सर्वश्रेष्ठ एंड्रॉइड गेम और ऐप्स के शुरुआती रिलीज, समाचार और गाइड तक पहुंचने वाले पहले व्यक्ति बनें।
जी नहीं, धन्यवाद
साइन अप करें
सफलतापूर्वक सब्सक्राइब!
अब आप APKPure की सदस्यता ले रहे हैं।
APKPure की सदस्यता लें
सर्वश्रेष्ठ एंड्रॉइड गेम और ऐप्स के शुरुआती रिलीज, समाचार और गाइड तक पहुंचने वाले पहले व्यक्ति बनें।
जी नहीं, धन्यवाद
साइन अप करें
सफलता!
अब आप हमारे न्यूज़लेटर की सदस्यता ले चुके हैं।