When I get response from c2dm there is an error in intent object req code is:
Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
registrationIntent.putExtra("sender", "achalrajpoot1@gmail.com");
and when I get response there is an error:
public void onReceive(Context context, Intent intent)
{
if (intent.getStringExtra("error") == null)
{
System.out.println("Error in registration ");
}
}
if() condition is true why?
what are possible reasons for this error?