SlideShare ist ein Scribd-Unternehmen logo
1 von 4
Downloaden Sie, um offline zu lesen
Google Cloud Messaging
Sketch:
Google cloud messaging (GCM) is a service given by google as a service for android
developer to send data to their android applications. Likewise, send message from applications
to server also possible using this service.

Predominant characteristics of GCM:






Lightweight messages( up to 4kb of message)
Don’t have any built in interfaces or libraries
Third party servers send messages to their android application while registered
with Google Cloud Server.
Everything will authenticate like client app and server and all.
Send same message to multiple devices at a time.

Needs to configure for GCM:
1. Client Android Application:
The GCM enabled android app which is higher that versions of Android 2.2 and need
to be installed Google Play Store and need to be logged in at least one google account with that
device. Or higher than the Android version of 4.0.4 (ICS).

2. Third Party Application Server:
Any third party server that is registered with Google Cloud Server has to send their
messages to them applications.
3. Google Cloud Server:
Google Cloud Server involves sending message to android application which was sent
by third party registered server.

How it works:
1. A project id which was given by Google API console for these services is to identify
the third party servers to send message using this id. Before that we need to switch
on these services in cloud console like.
2. Application Id that is to be registered android device has the rights to receive
has
messages from the server google server which is send by third party server.
3. API key that is given by the cloud server which is registered in third party server
have rights to send message to their android applications.
4. Registration id for the android application issued by the Cloud Server sends that to
third party server to identify their applications.
Here are the diagram that how we got project id and API key from google cloud console.
How it is applied to Client App
Application:

The above is the way to register the android application to get the messages from third party
server.
1. The first permission needed to be set to send registration id to third party server via
Google cloud server.
2. The Application must have to log into one go
google account.
3. This is used to keep devices processor from sleeping when the message is received.
4. To prevent other android application to registering and receiving messages from Google
cloud server.
5. This permission is must like Application Package+ permission.C2DMESSAGE
ion.C2DMESSAGE
6. Using this only android application registering with server and receiving messages.
Collapse key:
Collapse key is set as true to the old message is deleted instead of new messages arriving on
the queue. Currently only 100 messages will be in queue without collapsing.

Delay_while_idle:
The device is receiving messages if that’s not set as true. If we set as true for that then message
will be arrive at the time device awake.
The default timeout for messages are 4 weeks unless the time_to_live flage is set as true.

Throttling:
To prevent misuse or flood of messages to deliver a device and to optimize the battery life of
android device GCM use throttling that’s token bucket scheme. Each application have granted
their own collapse key even if it a single message. If collapse key exhaust then cloud server
sends a new token and the messages are queued until the new token is created.

What happens when uninstall the application:
GCM server gets message from third party server.
The GCM server send message to device.
The application receives messages from GCM server and queries package manager whether
they are have broadcast to configured and receive message
Then client application informed to the GCM server the app is uninstalled.
The GCM server marks the registration id for deletion.
Then GCM server gets message from third party server
The GCM return not registered and gives error message to the third party server.
Then third party deletes the registration ID.

By
Baburaj Annamalai

Weitere ähnliche Inhalte

Was ist angesagt?

Максим Щеглов - Google Cloud Messaging for Android
Максим Щеглов - Google Cloud Messaging for AndroidМаксим Щеглов - Google Cloud Messaging for Android
Максим Щеглов - Google Cloud Messaging for Android
UA Mobile
 
GCM Android
GCM AndroidGCM Android
GCM Android
aswapnal
 
Effective use of amazon web services for web deployment
Effective use of amazon web services for web deploymentEffective use of amazon web services for web deployment
Effective use of amazon web services for web deployment
Ghazanfar Latif (Gabe)
 
Google cloud messaging
Google cloud messagingGoogle cloud messaging
Google cloud messaging
Amardeep Vijay
 

Was ist angesagt? (20)

GCM for Android
GCM for AndroidGCM for Android
GCM for Android
 
FCM & GCM
FCM & GCMFCM & GCM
FCM & GCM
 
GOOGLE CLOUD MESSAGING PPT 2017
GOOGLE CLOUD MESSAGING PPT 2017GOOGLE CLOUD MESSAGING PPT 2017
GOOGLE CLOUD MESSAGING PPT 2017
 
Google Cloud Messaging
Google Cloud Messaging Google Cloud Messaging
Google Cloud Messaging
 
Максим Щеглов - Google Cloud Messaging for Android
Максим Щеглов - Google Cloud Messaging for AndroidМаксим Щеглов - Google Cloud Messaging for Android
Максим Щеглов - Google Cloud Messaging for Android
 
Firebase Cloud Messaging Device to Device
Firebase Cloud Messaging Device to DeviceFirebase Cloud Messaging Device to Device
Firebase Cloud Messaging Device to Device
 
CIS 2015- SSO for Mobile and Web Apps- Ashish Jain
CIS 2015- SSO for Mobile and Web Apps- Ashish JainCIS 2015- SSO for Mobile and Web Apps- Ashish Jain
CIS 2015- SSO for Mobile and Web Apps- Ashish Jain
 
Google Cloud Messaging
Google Cloud Messaging Google Cloud Messaging
Google Cloud Messaging
 
GCM Android
GCM AndroidGCM Android
GCM Android
 
[Android] Services and Broadcast Receivers
[Android] Services and Broadcast Receivers[Android] Services and Broadcast Receivers
[Android] Services and Broadcast Receivers
 
Effective use of amazon web services for web deployment
Effective use of amazon web services for web deploymentEffective use of amazon web services for web deployment
Effective use of amazon web services for web deployment
 
Google cloud messaging
Google cloud messagingGoogle cloud messaging
Google cloud messaging
 
Using the Google SafetyNet API for Banking & Finance
Using the Google SafetyNet API for Banking & FinanceUsing the Google SafetyNet API for Banking & Finance
Using the Google SafetyNet API for Banking & Finance
 
Константин Чернухо - Аккаунт-Менеджер - we've got it!
Константин Чернухо - Аккаунт-Менеджер - we've got it!Константин Чернухо - Аккаунт-Менеджер - we've got it!
Константин Чернухо - Аккаунт-Менеджер - we've got it!
 
Push it! How to use Google Cloud Messaging in your Android App
Push it! How to use Google Cloud Messaging in your Android AppPush it! How to use Google Cloud Messaging in your Android App
Push it! How to use Google Cloud Messaging in your Android App
 
How to request rental history verifications inside AppFolio
How to request rental history verifications inside AppFolioHow to request rental history verifications inside AppFolio
How to request rental history verifications inside AppFolio
 
Hlr lookup specification
Hlr lookup specificationHlr lookup specification
Hlr lookup specification
 
Applying OAuth on RingCentral API (part 3)
Applying OAuth on RingCentral API (part 3)Applying OAuth on RingCentral API (part 3)
Applying OAuth on RingCentral API (part 3)
 
How to request rental history verifications inside appfolio with renter fax c...
How to request rental history verifications inside appfolio with renter fax c...How to request rental history verifications inside appfolio with renter fax c...
How to request rental history verifications inside appfolio with renter fax c...
 
SMS retriever API
SMS retriever APISMS retriever API
SMS retriever API
 

Andere mochten auch

Investigating the Barriers of Application of Cloud Computing in the Smart Sch...
Investigating the Barriers of Application of Cloud Computing in the Smart Sch...Investigating the Barriers of Application of Cloud Computing in the Smart Sch...
Investigating the Barriers of Application of Cloud Computing in the Smart Sch...
Eswar Publications
 
Virtualization presentation
Virtualization presentationVirtualization presentation
Virtualization presentation
Mangesh Gunjal
 

Andere mochten auch (15)

Cloudcpmuting journal
Cloudcpmuting journalCloudcpmuting journal
Cloudcpmuting journal
 
A PARADIGM FOR THE APPLICATION OF CLOUD COMPUTING IN MOBILE INTELLIGENT TUTOR...
A PARADIGM FOR THE APPLICATION OF CLOUD COMPUTING IN MOBILE INTELLIGENT TUTOR...A PARADIGM FOR THE APPLICATION OF CLOUD COMPUTING IN MOBILE INTELLIGENT TUTOR...
A PARADIGM FOR THE APPLICATION OF CLOUD COMPUTING IN MOBILE INTELLIGENT TUTOR...
 
google cloud messaging
google cloud messaginggoogle cloud messaging
google cloud messaging
 
Investigating the Barriers of Application of Cloud Computing in the Smart Sch...
Investigating the Barriers of Application of Cloud Computing in the Smart Sch...Investigating the Barriers of Application of Cloud Computing in the Smart Sch...
Investigating the Barriers of Application of Cloud Computing in the Smart Sch...
 
Cloud Computing Basics by Ravi Namboori Cisco Evangelist
Cloud Computing Basics by Ravi Namboori Cisco EvangelistCloud Computing Basics by Ravi Namboori Cisco Evangelist
Cloud Computing Basics by Ravi Namboori Cisco Evangelist
 
PROJECT PLANNINGMEASURES IN CMMI
PROJECT PLANNINGMEASURES IN CMMIPROJECT PLANNINGMEASURES IN CMMI
PROJECT PLANNINGMEASURES IN CMMI
 
Cloud computing and its application in the world of net
Cloud computing and its application in the world of netCloud computing and its application in the world of net
Cloud computing and its application in the world of net
 
Application of cloud computing based on e learning teaching tool
Application of cloud computing based on e learning teaching toolApplication of cloud computing based on e learning teaching tool
Application of cloud computing based on e learning teaching tool
 
Cloud Computing and Virtualization
Cloud Computing and Virtualization Cloud Computing and Virtualization
Cloud Computing and Virtualization
 
applications of cloud computing for agricultural sector
applications of cloud computing for agricultural sectorapplications of cloud computing for agricultural sector
applications of cloud computing for agricultural sector
 
Application of Cloud Computing
Application of Cloud ComputingApplication of Cloud Computing
Application of Cloud Computing
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Virtualization basics
Virtualization basics Virtualization basics
Virtualization basics
 
Virtualization presentation
Virtualization presentationVirtualization presentation
Virtualization presentation
 
cloud computing ppt
cloud computing pptcloud computing ppt
cloud computing ppt
 

Ähnlich wie Google cloud messaging

Push-Notification
Push-NotificationPush-Notification
Push-Notification
Amey Ruikar
 
Introduction to google cloud messaging in android
Introduction to google cloud messaging in androidIntroduction to google cloud messaging in android
Introduction to google cloud messaging in android
RIA RUI Society
 
Android intents, notification and broadcast recievers
Android intents, notification and broadcast recieversAndroid intents, notification and broadcast recievers
Android intents, notification and broadcast recievers
Utkarsh Mankad
 
Android cloud to device messaging
Android cloud to device messagingAndroid cloud to device messaging
Android cloud to device messaging
Fe
 
Khadamaty_MOI_Smart_Gov_Award_Documentation
Khadamaty_MOI_Smart_Gov_Award_DocumentationKhadamaty_MOI_Smart_Gov_Award_Documentation
Khadamaty_MOI_Smart_Gov_Award_Documentation
Khadija Mohammed
 

Ähnlich wie Google cloud messaging (20)

Gcm tutorial
Gcm tutorialGcm tutorial
Gcm tutorial
 
A Journey into Google Cloud Messaging
A Journey into Google Cloud MessagingA Journey into Google Cloud Messaging
A Journey into Google Cloud Messaging
 
Push-Notification
Push-NotificationPush-Notification
Push-Notification
 
Introduction to google cloud messaging in android
Introduction to google cloud messaging in androidIntroduction to google cloud messaging in android
Introduction to google cloud messaging in android
 
GCM with Pushbots
GCM with PushbotsGCM with Pushbots
GCM with Pushbots
 
Magda badita gcm
Magda badita  gcmMagda badita  gcm
Magda badita gcm
 
GCM aperitivo Android
GCM aperitivo AndroidGCM aperitivo Android
GCM aperitivo Android
 
MAD Unit 5.pptxxxxxxxxxxxxxxxxxxxxxxxxxx
MAD Unit 5.pptxxxxxxxxxxxxxxxxxxxxxxxxxxMAD Unit 5.pptxxxxxxxxxxxxxxxxxxxxxxxxxx
MAD Unit 5.pptxxxxxxxxxxxxxxxxxxxxxxxxxx
 
Android intents, notification and broadcast recievers
Android intents, notification and broadcast recieversAndroid intents, notification and broadcast recievers
Android intents, notification and broadcast recievers
 
Android broadcast receiver tutorial
Android broadcast receiver  tutorialAndroid broadcast receiver  tutorial
Android broadcast receiver tutorial
 
Android broadcast receiver tutorial
Android broadcast receiver   tutorialAndroid broadcast receiver   tutorial
Android broadcast receiver tutorial
 
Android Cloud To Device Messaging
Android Cloud To Device MessagingAndroid Cloud To Device Messaging
Android Cloud To Device Messaging
 
Android cloud to device messaging
Android cloud to device messagingAndroid cloud to device messaging
Android cloud to device messaging
 
A Google Cloud Solution Minus Dedicated Server - App Only (Server and Client)
A Google Cloud Solution Minus Dedicated Server - App Only (Server and Client)A Google Cloud Solution Minus Dedicated Server - App Only (Server and Client)
A Google Cloud Solution Minus Dedicated Server - App Only (Server and Client)
 
Android chat in the cloud
Android chat in the cloudAndroid chat in the cloud
Android chat in the cloud
 
Android Cloud to Device Messaging Framework at GTUG Stockholm
Android Cloud to Device Messaging Framework at GTUG StockholmAndroid Cloud to Device Messaging Framework at GTUG Stockholm
Android Cloud to Device Messaging Framework at GTUG Stockholm
 
Khadamaty_MOI_Smart_Gov_Award_Documentation
Khadamaty_MOI_Smart_Gov_Award_DocumentationKhadamaty_MOI_Smart_Gov_Award_Documentation
Khadamaty_MOI_Smart_Gov_Award_Documentation
 
GOOGLE CLOUD MESSAGING (GCM): A LIGHT WEIGHT COMMUNICATION MECHANISM BETWEEN ...
GOOGLE CLOUD MESSAGING (GCM): A LIGHT WEIGHT COMMUNICATION MECHANISM BETWEEN ...GOOGLE CLOUD MESSAGING (GCM): A LIGHT WEIGHT COMMUNICATION MECHANISM BETWEEN ...
GOOGLE CLOUD MESSAGING (GCM): A LIGHT WEIGHT COMMUNICATION MECHANISM BETWEEN ...
 
Remotetestingfeaturev1 160109071942
Remotetestingfeaturev1 160109071942Remotetestingfeaturev1 160109071942
Remotetestingfeaturev1 160109071942
 
Remotetestingfeature v1.1
Remotetestingfeature v1.1Remotetestingfeature v1.1
Remotetestingfeature v1.1
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Google cloud messaging

  • 1. Google Cloud Messaging Sketch: Google cloud messaging (GCM) is a service given by google as a service for android developer to send data to their android applications. Likewise, send message from applications to server also possible using this service. Predominant characteristics of GCM:      Lightweight messages( up to 4kb of message) Don’t have any built in interfaces or libraries Third party servers send messages to their android application while registered with Google Cloud Server. Everything will authenticate like client app and server and all. Send same message to multiple devices at a time. Needs to configure for GCM: 1. Client Android Application: The GCM enabled android app which is higher that versions of Android 2.2 and need to be installed Google Play Store and need to be logged in at least one google account with that device. Or higher than the Android version of 4.0.4 (ICS). 2. Third Party Application Server: Any third party server that is registered with Google Cloud Server has to send their messages to them applications. 3. Google Cloud Server: Google Cloud Server involves sending message to android application which was sent by third party registered server. How it works: 1. A project id which was given by Google API console for these services is to identify the third party servers to send message using this id. Before that we need to switch on these services in cloud console like.
  • 2. 2. Application Id that is to be registered android device has the rights to receive has messages from the server google server which is send by third party server. 3. API key that is given by the cloud server which is registered in third party server have rights to send message to their android applications. 4. Registration id for the android application issued by the Cloud Server sends that to third party server to identify their applications. Here are the diagram that how we got project id and API key from google cloud console.
  • 3. How it is applied to Client App Application: The above is the way to register the android application to get the messages from third party server. 1. The first permission needed to be set to send registration id to third party server via Google cloud server. 2. The Application must have to log into one go google account. 3. This is used to keep devices processor from sleeping when the message is received. 4. To prevent other android application to registering and receiving messages from Google cloud server. 5. This permission is must like Application Package+ permission.C2DMESSAGE ion.C2DMESSAGE 6. Using this only android application registering with server and receiving messages.
  • 4. Collapse key: Collapse key is set as true to the old message is deleted instead of new messages arriving on the queue. Currently only 100 messages will be in queue without collapsing. Delay_while_idle: The device is receiving messages if that’s not set as true. If we set as true for that then message will be arrive at the time device awake. The default timeout for messages are 4 weeks unless the time_to_live flage is set as true. Throttling: To prevent misuse or flood of messages to deliver a device and to optimize the battery life of android device GCM use throttling that’s token bucket scheme. Each application have granted their own collapse key even if it a single message. If collapse key exhaust then cloud server sends a new token and the messages are queued until the new token is created. What happens when uninstall the application: GCM server gets message from third party server. The GCM server send message to device. The application receives messages from GCM server and queries package manager whether they are have broadcast to configured and receive message Then client application informed to the GCM server the app is uninstalled. The GCM server marks the registration id for deletion. Then GCM server gets message from third party server The GCM return not registered and gives error message to the third party server. Then third party deletes the registration ID. By Baburaj Annamalai