Expanding on mco's answer, your GCMIntentService
needs to do something that will trigger work in a foreground activity of yours, if you have a foreground activity. Typically, you will do this by setting up your activities to respond to some sort of message in onResume()
and removing that in onPause()
.
"Some sort of message" could be:
- An
Intent
sent viaLocalBroadcastManager
- An
Intent
sent via the classicsendBroadcast()
- A message via a message bus, like Otto
- Etc.