Reputation: 113
Hi I have done all things right, got all permissions right, signed_up my application. I even get a response from google when I call the com.google.android.c2dm.intent.REGISTER. Is there something wrong with the google servers? I only got a mail From: [email protected], Subject: AC2DM invitation.
Is there anyway to test the google c2dm side?
Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER");
registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0));
registrationIntent.putExtra("sender", "[email protected]");
this.startService(registrationIntent);
Upvotes: 1
Views: 445
Reputation: 10270
To answer your 2 questions:
Do I need another activation mail? I signed up the form one day ago...
You do not need another activation mail. If you read your email carefully, it doesn't guarantee that it will work within a day (took mine almost 2 full days to work).
Per the email: ... and you should be able to start using it to send messages to Android 2.2 devices within the next day or so.
Is there anyway to test the google c2dm side?
Trying to register your application is the best way to test it. If you receive a response in your receiver's onReceive
function, it means that Google's server-side is working fine.
Upvotes: 1