Android 未调用GCMinentService中的onRegistered()
未调用GCMinentService中的onRegisterd()方法 在日志中,它显示为: onReceive:com.google.android.c2dm.intent.REGISTRATION GCM IntentService类:com.example.dailysales.gcminentService 获取尾波锁 我的AndroidManifest.XML文件代码如下:Android 未调用GCMinentService中的onRegistered(),android,push-notification,google-cloud-messaging,Android,Push Notification,Google Cloud Messaging,未调用GCMinentService中的onRegisterd()方法 在日志中,它显示为: onReceive:com.google.android.c2dm.intent.REGISTRATION GCM IntentService类:com.example.dailysales.gcminentService 获取尾波锁 我的AndroidManifest.XML文件代码如下: <receiver android:name="com.google.android.gc
<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.dailysales" />
</intent-filter>
</receiver>
<service android:name="com.example.dailysales.backgroundservice.InboxMessageLoadingService" >
</service>
<service
android:name=".GCMIntentService"
android:enabled="true" >
</service>
这个答案可能会帮助您: 您正在使用google gcm客户端库中的
com.google.android.gcm.GCMBroadcastReceiver
广播接收器。此类希望意向服务位于应用程序的主包中
您应该将gcminentservice
移动到应用程序的主软件包中,或者覆盖GCMBroadcastReceiver