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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:25:53+00:00 2026-06-10T22:25:53+00:00

There is the problem with android push notifications (GCM) on android 3.1 : when

  • 0

There is the problem with android push notifications (GCM) on android 3.1 : when my app is CLOSED – broadcast receiver which should handle GCM push messages (Intents) is never called.

In lower versions of android everything works just fine. Broadcast reciever is always called (even when app is closed).

I know that from Android 3.1 there is new concept: when application is not running it is in “stopped” state:
http://developer.android.com/about/versions/android-3.1.html#launchcontrols

So if you want to start “stopped” application via Intent – you should add FLAG_INCLUDE_STOPPED_PACKAGES flag to Intent.

But problem is that i can’t add FLAG_INCLUDE_STOPPED_PACKAGES flag to GCM Intent because GCM Intents (i mean “com.google.android.c2dm.intent.RECEIVE” and “com.google.android.c2dm.intent.REGISTRATION”) are thrown by the OS.

So my question is: how can i handle push messages (on android 3.1) from GCM via broadcast reciever in situation when application (in which broadcastreceiver is registered) is closed (is in “stopped” state) ?

  • 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-10T22:25:55+00:00Added an answer on June 10, 2026 at 10:25 pm

    how can i handle push messages (on android 3.1) from GCM via broadcast reciever in situation when application (in which broadcastreceiver is registered) is closed (is in “stopped” state) ?

    You can’t. If the user force-stops your app, nothing of your app will run again (on Android 3.1+) unless invoked manually, such as the user launching one of your activities. Your objective is to give the user no reason to force-stop your app.

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

Sidebar

Related Questions

I have some problem with Android AsyncTask. There is an Activity which contains some
There is a problem on my Android app. If I put a method inside
I am working on an android app that will recieve push notifications from the
I've got an Android app with push notifications set up using Urban Airship. The
I have one problem with android calendar programming, so If there are 2 months
G'day there! I have a problem compilation of mupdf for android Compile thumb :
Problem: There are a lot of different databases, which is populated by many different
There is a problem in Eclipse when I run my Android application: An internal
I have a strange problem with my Android app. When I start it from
I want to build a backend application to push messages from server to android

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.