I also had this problem. I released Sandbox and Production applications (different Android accessories) with different package names, but with the same GCM permissions.
I started using ${packageName}
in the AndroidManifest.xml file.
I changed with
<permission android:name="com.playgong.permission.C2D_MESSAGE" android:protectionLevel="signature"/> <uses-permission android:name="com.playgong.permission.C2D_MESSAGE"/>
to
<permission android:name="${packageName}.permission.C2D_MESSAGE" android:protectionLevel="signature"/> <uses-permission android:name="${packageName}.permission.C2D_MESSAGE"/>
And in the receiver, an intent filter from:
<category android:name="com.playgong"/>
in
<category android:name="${packageName}"/>
source share