0

I've been developing an app that gathers data from a wearable device (connected by Bluetooth). I'd like that data to be stored even when the app's main activity gets destroyed by the Android framework. After some research, I noticed that I had to use a foreground service to do that.

Then, I noticed that google maps sends me notifications about my location (e.g. how was McDonald's, review it), meaning the app communicates my location with Google's servers even when the app's main activity hasn't been launched.

How do they achieve such behavior without the use of foreground services?

Simon Corcos
  • 962
  • 14
  • 31

0 Answers0