SlideShare a Scribd company logo
Ranjitha Ravi
ranjitharavi2402@gmail.com
GCM Technology for Android
 Introduction
 C2DM Technology
 C2DM Advantages&Disadvantages
 GCM Definition
 GCM characteristics
 GCM Working
 Summary
 References
POLL AND PUSH NOTIFICATIONS
 Poll :- Application contact cloud to check new
message
 Simple to implement
 Device periodically ask server for new data
 Used widely where the content changes
continuously
Disadvantage :-
 Extra Network Usages
 Reduced Battery life
Server/Cloud App / Device
 Push :-It defines type of internet based
communication in which Server contact Application
or device whenever new message is available
Advantages :-
 Reduce extra network uses
 Consumes less battery
 Harder to implement
Server/Cloud App / Device
 Stands for Cloud to Device Messaging
 Used to send message from cloud to device
or application
 Support Push Notification
 C2DM retired and It’s time to GCM (Google
Cloud Messaging)
 Part of Google API
App Server C2DM Server
App / Device
Advantages :
 Using C2DM Developers can develop more
productive apps
 C2DM is connected to cloud so developers
can get benefits of cloud computing in their
apps
Disadvantage :
 Internet connectivity is required
 Limited message size
GCM Technology for Android
 GCM (Google Cloud Messaging) is a free
service that helps developers send data from
servers to their Android applications on
Android devices.
 Lightweight message to applications telling
that
there is new data to be fetched from the
server or
a message containing up to 4kb of payload
data (e.g: instant messaging apps).
● Allows 3rd-party application servers to send
messages to their Android applications.
● GCM makes no guarantees about delivery or the
order of
messages.
● Application on an Android device doesn't need to be
running to
receive messages.
● Uses an existing connection for Google services.
For pre-4.0devices, this requires users to set up their
Google account on their mobile devices.
GCM
ConnectionServer
Client App
App Server
 Google server sending
messages between the
app server and the
client app
 Client app with GCM-
enabled communicate
with your app server
 An app server that you
write as part of
implementing GCM. This
server sends data to a
client app using GCM
connection server.
 Component  Discription
 Google migrated its products like :
Blogger to Google Blogs
Picasa to Google Image
AdMob to Google AdMob
Android marketplace to Google play
 So It’s time to C2DM to GCM
 Overcome disadvantages of C2DM
• Android 2.2 +
• Android market place should be
installed
• Emulator with Google APIs
• Internet connection
• Google account
( device version < 4.0.4 )
App Server GCM Server
App / Device
HOW GCM WORKS (contd.)
The Three Components of GCM
1)Mobile Device: The device that is running an Android applica
tion that uses GCM.
2) 3rd-party Application Server
3) GCM Servers
1) Your application attempts to register with the Google Cloud
messaging (GCM) servers..
5) The AirBop servers send the message to GCM using t
he registration Id to target the app and device AirBop
delivers the message to the GCM servers along with th
e registration Ids of registered clients.
6) GCM sends the message to the apps and devices tha
t match the registration Id(s).
4) You compose a message on the AirBop website
2) GCM registers your device and generates a registrati
on Id for your application.
3) Your app sends the registration Id (plus optional addi
tional information) to the AirBop servers.
7) Your app opens the message and handles the data appr
opriately.
8) The message can be sent to as many devices that have
installed your app and registered with the server.
Of course in a real situation your message will probably
be deliv ered to tens of thousands of devices not just on
e or two.
Google Play :
 Google play uses GCM to
install requested android
apps from Google play
official site.
(http://play.google.com)
 Google play android app
uses GCM to receive
requested apps from
google play
 Message Multicasting for News
 Multiple Senders for Social Updates
 Time to Live for Events and Promos
 Messages with Payload for IM
Thank you for your
time.

More Related Content

PPTX
GOOGLE CLOUD MESSAGING PPT 2017
PPTX
google cloud messaging
PPTX
Gcm presentation
PDF
GCM for Android
PPTX
Google cloud messaging
PPT
Google Cloud Messaging
PPT
Google Cloud Messaging
PPSX
Google Cloud Messaging
GOOGLE CLOUD MESSAGING PPT 2017
google cloud messaging
Gcm presentation
GCM for Android
Google cloud messaging
Google Cloud Messaging
Google Cloud Messaging
Google Cloud Messaging

What's hot (18)

PPTX
GCM Android
PDF
Максим Щеглов - Google Cloud Messaging for Android
PPTX
FCM & GCM
PDF
Firebase Cloud Messaging Device to Device
PDF
Google cloud messaging
PPTX
google cloud messaging
PPTX
Push it! How to use Google Cloud Messaging in your Android App
PDF
ID Android TechTalk Series #6 : Google Service and Gradle - Andrew Kurniadi
PPTX
Android Cloud to Device Messaging with the Google App Engine
PPTX
Effective use of amazon web services for web deployment
PDF
Benefit for firebase push notification
PDF
MobAdv Company Presentation
PPT
Android C2DM Presentation at O'Reilly AndroidOpen Conference
PPT
Bulk sms gateway integration in java
PDF
Hp0 m50 question answers
PDF
CIS 2015- SSO for Mobile and Web Apps- Ashish Jain
PDF
Firebase Cloud Messaging for iOS
GCM Android
Максим Щеглов - Google Cloud Messaging for Android
FCM & GCM
Firebase Cloud Messaging Device to Device
Google cloud messaging
google cloud messaging
Push it! How to use Google Cloud Messaging in your Android App
ID Android TechTalk Series #6 : Google Service and Gradle - Andrew Kurniadi
Android Cloud to Device Messaging with the Google App Engine
Effective use of amazon web services for web deployment
Benefit for firebase push notification
MobAdv Company Presentation
Android C2DM Presentation at O'Reilly AndroidOpen Conference
Bulk sms gateway integration in java
Hp0 m50 question answers
CIS 2015- SSO for Mobile and Web Apps- Ashish Jain
Firebase Cloud Messaging for iOS
Ad

Viewers also liked (16)

PDF
Sc next india 2013 ptak prize challenge
DOCX
yunas lcl cv
PPTX
Diapositivas miguelina
PPTX
Pandra
PDF
Digify 7.0 facebook: Presented by Liquid
PPTX
Melissa Baez Flores
PDF
Admision 2015-II Segunda Especializacion FIE
PPTX
Diapositiva exposicion psicologia de la conciencia migui
PDF
Cronograma de Evaluaciones Sustitutorias 2016-I
PDF
Boletin informativo FIE Nro 04
PPTX
18 de marzo
PDF
Google.. The WoW and How
PDF
Android Push Notifications
PDF
Android Interview Questions
PDF
Android notification
PPTX
How to implement a simple dalvik virtual machine
Sc next india 2013 ptak prize challenge
yunas lcl cv
Diapositivas miguelina
Pandra
Digify 7.0 facebook: Presented by Liquid
Melissa Baez Flores
Admision 2015-II Segunda Especializacion FIE
Diapositiva exposicion psicologia de la conciencia migui
Cronograma de Evaluaciones Sustitutorias 2016-I
Boletin informativo FIE Nro 04
18 de marzo
Google.. The WoW and How
Android Push Notifications
Android Interview Questions
Android notification
How to implement a simple dalvik virtual machine
Ad

Similar to GCM Technology for Android (20)

PPTX
GCM with Pushbots
PDF
GOOGLE CLOUD MESSAGING (GCM): A LIGHT WEIGHT COMMUNICATION MECHANISM BETWEEN ...
PDF
GOOGLE CLOUD MESSAGING (GCM): A LIGHT WEIGHT COMMUNICATION MECHANISM BETWEEN ...
PPTX
Android cloud to device messaging
 
PPTX
Android Cloud To Device Messaging
PDF
A Journey into Google Cloud Messaging
PPTX
Introduction to google cloud messaging in android
PDF
Push-Notification
PDF
Push to Me: Mobile Push Notifications (Zend Framework)
PPTX
PPTX
AutoMate+
PPTX
Automate+ Final Presentation
PDF
Android push-applications-android
PPTX
A Google Cloud Solution Minus Dedicated Server - App Only (Server and Client)
PDF
Android Cloud to Device Messaging Framework at GTUG Stockholm
PDF
Android Cloud2Device Messaging
PDF
Suciu et al_rolcg_2015
PPTX
Your Guide to Push Notifications - Comparing GCM & APNS
PDF
FOSS STHLM Android Cloud to Device Messaging
GCM with Pushbots
GOOGLE CLOUD MESSAGING (GCM): A LIGHT WEIGHT COMMUNICATION MECHANISM BETWEEN ...
GOOGLE CLOUD MESSAGING (GCM): A LIGHT WEIGHT COMMUNICATION MECHANISM BETWEEN ...
Android cloud to device messaging
 
Android Cloud To Device Messaging
A Journey into Google Cloud Messaging
Introduction to google cloud messaging in android
Push-Notification
Push to Me: Mobile Push Notifications (Zend Framework)
AutoMate+
Automate+ Final Presentation
Android push-applications-android
A Google Cloud Solution Minus Dedicated Server - App Only (Server and Client)
Android Cloud to Device Messaging Framework at GTUG Stockholm
Android Cloud2Device Messaging
Suciu et al_rolcg_2015
Your Guide to Push Notifications - Comparing GCM & APNS
FOSS STHLM Android Cloud to Device Messaging

Recently uploaded (20)

PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
IGGE1 Understanding the Self1234567891011
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
advance database management system book.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
20th Century Theater, Methods, History.pptx
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
Weekly quiz Compilation Jan -July 25.pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
IGGE1 Understanding the Self1234567891011
FORM 1 BIOLOGY MIND MAPS and their schemes
My India Quiz Book_20210205121199924.pdf
Virtual and Augmented Reality in Current Scenario
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
A powerpoint presentation on the Revised K-10 Science Shaping Paper
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
advance database management system book.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
20th Century Theater, Methods, History.pptx
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
LDMMIA Reiki Yoga Finals Review Spring Summer
TNA_Presentation-1-Final(SAVE)) (1).pptx

GCM Technology for Android

  • 3.  Introduction  C2DM Technology  C2DM Advantages&Disadvantages  GCM Definition  GCM characteristics  GCM Working  Summary  References
  • 4. POLL AND PUSH NOTIFICATIONS  Poll :- Application contact cloud to check new message  Simple to implement  Device periodically ask server for new data  Used widely where the content changes continuously Disadvantage :-  Extra Network Usages  Reduced Battery life Server/Cloud App / Device
  • 5.  Push :-It defines type of internet based communication in which Server contact Application or device whenever new message is available Advantages :-  Reduce extra network uses  Consumes less battery  Harder to implement Server/Cloud App / Device
  • 6.  Stands for Cloud to Device Messaging  Used to send message from cloud to device or application  Support Push Notification  C2DM retired and It’s time to GCM (Google Cloud Messaging)  Part of Google API
  • 7. App Server C2DM Server App / Device
  • 8. Advantages :  Using C2DM Developers can develop more productive apps  C2DM is connected to cloud so developers can get benefits of cloud computing in their apps Disadvantage :  Internet connectivity is required  Limited message size
  • 10.  GCM (Google Cloud Messaging) is a free service that helps developers send data from servers to their Android applications on Android devices.  Lightweight message to applications telling that there is new data to be fetched from the server or a message containing up to 4kb of payload data (e.g: instant messaging apps).
  • 11. ● Allows 3rd-party application servers to send messages to their Android applications. ● GCM makes no guarantees about delivery or the order of messages. ● Application on an Android device doesn't need to be running to receive messages. ● Uses an existing connection for Google services. For pre-4.0devices, this requires users to set up their Google account on their mobile devices.
  • 12. GCM ConnectionServer Client App App Server  Google server sending messages between the app server and the client app  Client app with GCM- enabled communicate with your app server  An app server that you write as part of implementing GCM. This server sends data to a client app using GCM connection server.  Component  Discription
  • 13.  Google migrated its products like : Blogger to Google Blogs Picasa to Google Image AdMob to Google AdMob Android marketplace to Google play  So It’s time to C2DM to GCM  Overcome disadvantages of C2DM
  • 14. • Android 2.2 + • Android market place should be installed • Emulator with Google APIs • Internet connection • Google account ( device version < 4.0.4 )
  • 15. App Server GCM Server App / Device
  • 16. HOW GCM WORKS (contd.) The Three Components of GCM 1)Mobile Device: The device that is running an Android applica tion that uses GCM. 2) 3rd-party Application Server 3) GCM Servers 1) Your application attempts to register with the Google Cloud messaging (GCM) servers..
  • 17. 5) The AirBop servers send the message to GCM using t he registration Id to target the app and device AirBop delivers the message to the GCM servers along with th e registration Ids of registered clients. 6) GCM sends the message to the apps and devices tha t match the registration Id(s). 4) You compose a message on the AirBop website 2) GCM registers your device and generates a registrati on Id for your application. 3) Your app sends the registration Id (plus optional addi tional information) to the AirBop servers.
  • 18. 7) Your app opens the message and handles the data appr opriately. 8) The message can be sent to as many devices that have installed your app and registered with the server. Of course in a real situation your message will probably be deliv ered to tens of thousands of devices not just on e or two.
  • 19. Google Play :  Google play uses GCM to install requested android apps from Google play official site. (http://play.google.com)  Google play android app uses GCM to receive requested apps from google play
  • 20.  Message Multicasting for News  Multiple Senders for Social Updates  Time to Live for Events and Promos  Messages with Payload for IM
  • 21. Thank you for your time.

Editor's Notes

  • #21: Up to 1000 devices simultaneously. Up to 100 project IDs Default ttl time is 4 week
  • #22: I hope you enjoyed it. HAVE A GREAT DAY…