Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Google Cloud Messaging Service in Android Works?

I want to use GCM Service in my application.

I have referred to the following link (Android Developer: Google GCM) but was not able to install the GCM Library in my eclipse.

From the SDK manager I am not getting GCM Library in the Extras Folder.

Can anyone please help me?

like image 252
Bhavesh Patadiya Avatar asked Jun 28 '12 09:06

Bhavesh Patadiya


People also ask

How does Google Cloud Messaging work?

The first step in GCM is that a third-party server (such as an email server) sends a request to Google's GCM server. This server then sends the message to your device, through that open connection. The Android system looks at the message to determine which app it's for, and starts that app.

How does FCM work in Android?

The Android push notifications through FCM actually treats the Data Messages as notification messages itself. As the interactions in the data messages are handled by the app itself, FCM's work is just to deliver a notification and the message content.

What is Cloud Messaging API Android?

Google Cloud Messaging (GCM) is a service that allows you to send push notifications from your server to your users' Android devices, and also to receive messages from devices on the same connection.


2 Answers

I had similar issues and it was resolved once I updated Android SDK Tools to revision 20 and Android Platform SDK Tools to revision 12. Rev 19/11 would not shown up Extras > Google Cloud Messaging for Android Library in SDK Manager. And make sure that you restart SDK manager after updating.

It should then show up in SDK manager as shown bellow: enter image description here

like image 191
Bo. Avatar answered Oct 10 '22 13:10

Bo.


For me just an update don't work. But try to download and install new Android SDK from http://developer.android.com/sdk/index.html. After installing this it finally shows me new libraries in extras.

like image 1
Gecaj Avatar answered Oct 10 '22 14:10

Gecaj