0

I know this problem has been asked many times and I have seen most of the posts saying the app process won't be launched after it is killed.

I just have tested this but I found this behavior is not very consistent. I am using the "messaging" example app from "ApiDemo" from google. This "messaging" app is really simple and it doesn't have any special things such as automatically launching after device reboot, etc, so very basic app. What I have tested this are: 1. Swipe the app from the task manager,e.g. long press the home button and close all. I double checked the Application manager from System setting to make sure the process is killed. Then I send the "data" type FCM and its process WAS CREATED.

  1. Rebooted the device and double check the Application manager and its process was not running. Then I send the "data" type FCM and its process WAS CREATED.

  2. "Force Stop" from the Application manager and then I send the "data" type FCM and its process WAS NOT CREATED.

I am using the com.google.firebase:firebase-messaging:11.0.2 and tried both the priority "high" and "normal" whose behavior is the same.

So is there any official doc saying about this behavior? Thanks.

  • Possible duplicate of [GCM push notification works after app Force Stop?](https://stackoverflow.com/questions/20838415/gcm-push-notification-works-after-app-force-stop) – Tim Jul 14 '17 at 07:37
  • Thanks, that answers the 3. What about 1 and 2. – supernewbie Jul 14 '17 at 09:33

0 Answers0