2

This question has been asked many times but nothing seems to work..

I made a foreground service for location, it seems to work fine.. i get a notification and get the location as long as the activity is still open. As soon user swipes and kills the activity the foreground service remains in the notification and when I check-in running services it is still running, however, the location updates stop coming.

When I further investigated I found that although the foreground service is not killed its main processes which were google GM location was killed. Hence no location is coming.

The phone I am testing on is Xiami Mi Mix3, with Android 8.0. Does anyone have any ideas..

thanks

nadeem jamal
  • 57
  • 1
  • 6

0 Answers0