Joy Helina Joy Helina - 10 months ago 50
PHP Question

Not Receiving push notification in GCM

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.


You need to check both the Sender id and the API id. After that you must check the android Manifest file like below

    android:name="your packagename.permission.C2D_MESSAGE"
    android:protectionLevel="signature" />
<uses-permission android:name="your package name.permission.C2D_MESSAGE" />
<uses-permission android:name=""        />
        android:permission="" >

            <!-- Receives the actual messages. -->
            <action android:name="" />
            <!-- Receives the registration id. -->
            <action android:name="" />

            <category android:name="your package name" />

<service android:name="your package name.GCMIntentService" />