Reputation: 378
I am using Gcm service for Push notification in my app.
I am using this Link
After registering the client unable to receive push notification.
Help to receive Push from server.
Upvotes: 2
Views: 781
Reputation: 1441
You need to check both the Sender id and the API id. After that you must check the android Manifest file like below
<permission
android:name="your packagename.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="your package name.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<receiver
android:name="com.google.android.gcm.GCMBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<!-- Receives the actual messages. -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<!-- Receives the registration id. -->
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="your package name" />
</intent-filter>
</receiver>
<service android:name="your package name.GCMIntentService" />
Upvotes: 2