3

I tried the code for GCM given here

Using this I am able to get the registration id for my application (I checked on the device and found it got printed onto the TextView that I set).

But now how can I check for the receiving of messages (push notifications) from the server. Actually how to connect my code to the server?

onkar
  • 4,427
  • 10
  • 52
  • 89
Sharath G
  • 91
  • 2
  • 6

1 Answers1

2

This is kinda vague. So you haven't set anything up on your server? First you need to set up the server. You just make a regular http call using the specifications found GCM Server

This is the server section but you might want to read the whole document to get the full picture

onkar
  • 4,427
  • 10
  • 52
  • 89
Tolga E
  • 12,188
  • 15
  • 49
  • 61