按照这个官方教程,我已经在我的应用程序中实现了GCM。但是我在Android 4.0.3下的用户报告我的通知不起作用。我发现我没有被解雇。这是我的清单。onReceive
GcmBroadcastReceiver extends BroadcastReceiver
<!-- 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>
我究竟做错了什么?