GcmBroadcastReceiver not fired on Android 4.0.3
android, google-cloud-messaging, notifications, push-notification
Solution
Is your application's main package name com.nyapp.gcm or com.myapp?
In the permission part of the manifest you use com.myapp.gcm while in the category of the intent filter of the receiver you use com.myapp.
In both places you should you the same package, which is the main package of your app.
Problem
I've implemented GCM in my app, following this official tutorial. But my users under Android 4.0.3 reported me notifications are not working. I found out that `onReceive` from my `GcmBroadcastReceiver extends BroadcastReceiver` wasn't fired. Here is my Manifest. ``` <!-- GCM --> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <uses-permission android:name="android.permission.VIBRATE" /> <permission android:name="com.myapp.gcm.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="com.myapp.gcm.permission.C2D_MESSAGE" /> <application ... > <!-- GCM --> <receiver android:name="com.myapp.GcmBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <category android:name="com.myapp" /> </intent-filter> </receiver> ``` What am I doing wrong?