I am using the example code provided by the background_locator_2 package. I started the background location service, and it continued working even after I removed the app from recent tasks. However, when I cleared my phone's cache by selecting "Free up some space," the location service stopped working, the notification disappeared, and it stopped recording my location.
Is there any way to ensure the background location service continues running even when the cache is cleared? Alternatively, is it possible to warn the user that clearing the cache will stop the application?
I am using the example code provided by the
background_locator_2package. I started the background location service, and it continued working even after I removed the app from recent tasks. However, when I cleared my phone's cache by selecting "Free up some space," the location service stopped working, the notification disappeared, and it stopped recording my location.Is there any way to ensure the background location service continues running even when the cache is cleared? Alternatively, is it possible to warn the user that clearing the cache will stop the application?