嗨在我的项目中,我添加了gcm通知服务,并关注了开发人员的官方page.I发送设备注册ID到服务器我的密钥也保存在server.And我的服务器发送通知到gcm服务器在那个时候服务器我得到成功消息。但我没有得到任何推送通知给我的设备。请提供任何建议。在此先感谢推送通知没有收到我的Android设备从gcm?
,在我的logcat显示此消息
GCMBroadcastReceiver: onReceive: com.google.android.c2dm.intent.RECEIVE
GCMBroadcastReceiver: GCM IntentService class: com.example.GCMIntentService
GCMBaseIntentService: Acquiring wakelock
this is my manifest with all other permissions
<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="com.example" />
</intent-filter>
</receiver>
<service android:name=".GCMIntentService" />
显示你试过的代码。 – keshav
发送您的代码或您正在尝试使用哪种设备..只需通过显示通知(在Android 4.1及更高版本上)即可跨设置 - >应用程序管理器 - >您的应用程序 - >复选框 – chaitanya
同时检查您的设备是否有有效的谷歌帐户即。在Google Play商店注册。 – chaitanya