I am new to android development,now I am working on C2DM implementation for android device. I have used this below code to get the registrationID for the device.
public void register(View view) {
Intent intent = new Intent("com.google.android.c2dm.intent.REGISTER");
intent.putExtra("app",PendingIntent.getBroadcast(this, 0, new Intent(), 0));
intent.putExtra("sender", "youruser@gmail.com");
startService(intent);
}
I am following this tutorial for C2DM implementation.
Now my question is if device is switched off for a longer period of time (for ex. 15 days),so I want to know how long the C2DM message will be valid?
If device is switched on after that and application server has not sent next C2DM message,so will device get that C2DM message?