The app is handling location updates and sending the location back to a server. The app does not turn the location updates off. This is for devices permanently plugged into power, so battery is not an issue.
By design, will the location updates continue indefinitely, or will Android stop sending them at some point, for example if the app is pushed out of RAM?
If the location updates do stop, how do I request them in such a way that they will continue indefinitely?
Yes, if phone is not asleep, then user processes will run.
Register a
LocationListenerin a Service so that it’s triggered when location changes. Even if your service is not running, system will start it and execute the registered method.You should definitelly read the Deep Dive into Location blog for all angles of location handling in Android.