Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8127519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:33:35+00:00 2026-06-06T07:33:35+00:00

I am new to android development,now I am working on C2DM implementation for android

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:33:36+00:00Added an answer on June 6, 2026 at 7:33 am

    as per http://www.hightechno.info/2011/08/c2dm-tutorial-send-push-notifications.html

    In this same query, another property is interesting: collapse_key . This key is an identifier that is given to messages of a similar nature. Thus, if the phone is switched off and that several messages with the same identifier C2DM accumulate on the server, only the latter will be sent when the appliance is turned on. It is therefore necessary to carefully select these identifiers.
    .
    .

    delay_while_idle
    
    • If included, indicates that the message should not be sent
      immediately if the device is idle. The server will wait for the
      device to become active, and then only the last message for each
      collapse_key value will be sent. Optional.

    as per how to set valid time period for android c2dm message?

    • our server app only sends messages during certain times

      or

    • Your Android app receives the C2DM messages all the time, but during
      certain times you ignore/handle as appropriate.

    as this this link for push over looks third pary app

    If your phone is connected to the Internet then it will instantly receive the notification from the Pushover servers. If not, it will remain there for 30 days until you do connect.

    Your notifications are secure, as all transmissions are encrypted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

friends I am new to iphone development, I have mostly worked with Android, now
I am new to Android development. Kindly help me out with this code. I
i am new to android development and i am now developing a project. This
I am new to android development My eclipse was working properly. But now when
I'm breaking my head over this one. I'm kind of new in android development.
I'm brand new to Android development and right now I am building a simple
Im new to this android development, and im currently playing around with the HelloM4A
I'm new to android development and I've been working on android through java(eclipse) till
I am working on new app development in android. I need to launch an
I am new to android development and now i am developing an e commerce

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.