Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking status of GCM message

I'm trying to send a message to my phone by using GCM. I receive a message id=0... response but my phone doesn't show any message. Is there a way to check the status of messages(sent,waiting etc.)

like image 881
Anil Kocabiyik Avatar asked Aug 14 '12 12:08

Anil Kocabiyik


2 Answers

Nope. If you received message_id=xxxx response, then GCM server has accepted your request and will process it ASAP. Whatever happens after that you have no control over with. You won't get another response whether the messages are delivered to the intended devices.

like image 148
azgolfer Avatar answered Sep 30 '22 07:09

azgolfer


Google has recently added support to view the status of your messages sent via GCM. Follow these steps:

GCM statistics

You can sign up for GCM for both Play and non-Play apps. However, GCM statisticss will be available for only published Google Play apps. To see GCM statistics on your Google Play Developer Console, here's how to associate the GCM Simple API Key or C2DM token with your application:

  1. Sign in to your Google Play Developer Console.
  2. Select an app.
  3. On the left menu, click Services & APIs.
  4. Click the Link a sender ID button.
  5. Type your GCM API key or C2DM client login token.
  6. Click Link.
  7. Once your app is published, you can view GCM statistics on your app's Statistics page.

Sign in to your Google Play Developer Console.

  1. Select an app.
  2. On the left menu, click GCM Diagnostics.

enter image description here

like image 21
Lenin Raj Rajasekaran Avatar answered Sep 30 '22 07:09

Lenin Raj Rajasekaran