Notification was working fine but suddenly It was not working. Got error like handleRegistration: registrationId = null, error = AUTHENTICATION_FAILED, unregistered = null So, I found solution And Implement it from below links.
http://dexxtr.com/post/28188228252/rename-or-change-package-of-gcmintentservice-class
GCMRegistrar getRegistrationId return empty ID
But still I got an Issue and got error like
V/GCMRegistrar(24934): Setting the name of retry receiver class to com.mypackage.GCMBroadcastReceiver
V/GCMBroadcastReceiver(24934): GCM IntentService class: com.mypackage.gcm.GCMIntentService
V/GCMBaseIntentService(24934): Acquiring wakelock
V/GCMBroadcastReceiver(24934): onReceive: com.google.android.c2dm.intent.REGISTRATION
V/GCMBroadcastReceiver(24934): GCM IntentService class: com.mypackage.gcm.GCMIntentService
V/GCMBaseIntentService(24934): Acquiring wakelock
And In Manifest file
<receiver
android:name="com.mypackage.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="mypackage" />
</intent-filter>
</receiver>
<service android:name="com.mypackage.GCMIntentService" />
Implemented Receiver class
public class GCMBroadcastReceiver extends com.google.android.gcm.GCMBroadcastReceiver{
@Override
protected String getGCMIntentServiceClassName(Context context) {
// TODO Auto-generated method stub
return "com.mypackage.gcm.GCMIntentService";
}
I want to know why It is happening suddenly? And Provide possible solutions on it.
I implemented all possible solutions from Stackoverflow but It is not working. Please let me knoe the error. Thanks in advance.
0 comments:
Post a Comment