user3759305
user3759305

Reputation: 1

send notification to android device from server without GCM(Google Cloud Messaging)

I have to send notification from server to android device. I developed application which got notification from server by using GCM (Google Cloud Messaging). But as I already have server then why to use GCM. I am not getting the purpose of using GCM. Can we send notification from server to android application without using GCM.

Upvotes: 0

Views: 903

Answers (2)

Shivam Verma
Shivam Verma

Reputation: 8023

General Communication Pattern :

Device --> HTTPRequest -- >Server , Server -->HTTPResponse --> Device

But in this case, the device gets a response only when you send a request from your device to the server. Hence, whenever you need something new from your server you need to make a request.

Using GCM, you do not need to make this request explicitly to your server. You'll automatically be notified when something new happens (depending on your implementation).

Upvotes: 1

Krupa Patel
Krupa Patel

Reputation: 3359

You are having server but GCM is totally different thing then your server.

GCM will monitor Your Application server that any changes made or not ??

And if anything created then it will send you notification without refresh or reload the Application.

and GCM will send you notification when your application is not working as well

Upvotes: 0

Related Questions