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 7980105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:58:00+00:00 2026-06-04T09:58:00+00:00

I have implemented C2DM (Android Push Notification) to my app and all is working

  • 0

I have implemented C2DM (Android Push Notification) to my app and all is working fine. However, when my app is running, I am able to get notifications. May I know how if I am able to stop the push notification from coming in if my application is running? I only want to receive push notifications only when my app is not running. Because as far as I know, the APNS (Apple Push Notification Service) would check if the app is running or not before sending the push notification. Does C2DM do this too?

Thanks all in advance!

  • 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-04T09:58:02+00:00Added an answer on June 4, 2026 at 9:58 am

    @Moujib is right. I am facing the same problem as you, I’d like to stop the push notifications if the app is running. I did managed to solve the problem by using the code from here: http://kpbird.blogspot.com/2011/08/android-check-application-is-running.html

    Use that piece of code to check if your app is running or not. Then, if the app is running, I did nothing to it, if it is not running, I would then send/get the push notifications. Hope that helps!

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

Sidebar

Related Questions

I refered Link Here and Implemented sample android Push Notification.I have already registered in
I have an app with C2DM currently implemented. I had it working to the
I have implemented the push notifications using C2DM code in my project. It is
I have an Android application which uses C2DM services (aka push). I have a
I have implemented a test app with Android's In-App Billing. I have filled in
I have a requirment to use Android C2DM functionality. However, the restriction is that
I have implemented C2DM in one of the applications and its working properly. Sometimes,
I have implemented PushNotification Using C2dm. I am getting notification from c2dm also. My
I have implemented c2dm and it works fine that the device receives the message
I have implemented Twitter4J in my Android application and it's works fine. But after

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.