Skip to content Skip to sidebar Skip to footer

Gcm Not Working

I am learning GCM(Google cloud Messaging) I Completed Following steps 1 - Activated and Obtained a Key for browser apps 2 - added following in manifest Uses permission : com.goog

Solution 1:

Sorry everyone,

Actually my program is correct. I think it’s a problem with my phone. (I can’t receive messages from Facebook messenger also,)

but Today morning I surprised, I got every messages from my test app(message that I send 2 days ago), Facebook ,etc.

Thank you everyone.

Solution 2:

Follow this and this easy tutorial to send and receive push nothification in Android. And check package naming and AndroidManifest.xml file configured correctly as explained in this example and set receiver like this:

<receiverandroid:name="com.google.android.gcm.GCMBroadcastReceiver"android:permission="com.google.android.c2dm.permission.SEND" ><intent-filter><!-- Receives the actual messages. --><actionandroid:name="com.google.android.c2dm.intent.RECEIVE" /><!-- Receives the registration id. --><actionandroid:name="com.google.android.c2dm.intent.REGISTRATION" /><categoryandroid:name="your package name here" /></intent-filter></receiver>

Post a Comment for "Gcm Not Working"