0

As far as I knew, if you "Force stop" an application, then all the services and processes started from that app are terminated. That's why I didn't try to find a way to keep a message service running after my app was brutally closed, I thought it was impossible.

Then I've found out that if I force close Whatsapp and someone sends me a message, I still get a notification.

How is it possible ?

OK, my fail, it's definetely not possible as designed by Google. I did the test again, force closed whatsapp and didn't get any notification.

So, eventhough pressing a button "Force stop" dosen't offer many ways to fail, I must have done something wrong the first time I tested.

Community
  • 1
  • 1
marco
  • 1,686
  • 1
  • 25
  • 33

1 Answers1

0

Although this is a little old, I belive it can help you: Restart the service even if app is force-stopped and Keep running service in background even after closing the app How?

yakobom

Community
  • 1
  • 1
yakobom
  • 2,681
  • 1
  • 25
  • 33
  • That thread just confirms what I knew, it's not possible. I also checked with the task manager and there was no whatsapp process running. – marco Oct 25 '15 at 15:03
  • It is very likely that they are using GCM platform - the app registers for a braodcast reciever and the broadcast receiver starts the service on getting the push notification... – yakobom Oct 26 '15 at 09:33