I am working on an app that needs to call an API for every 100 meters the user walks for. I need to make the app work even if it is terminated by the system.`
I was thinking about region monitoring as it will work in the terminated state as well, but since it depends on Wifi and cell phone towers, it might not be accurate in my case as the user might be out on a remote hike.
For precision, standard location updates work well, but they don't work in case the app is terminated by the system.
So my question is can I use both standard and region monitoring services together? I can put a distance filter of 100 m and get continuous updates in the foreground and background from the standard location services and each time update the region for the region monitoring services, in case the app gets terminated, the region monitoring service can take over and send me location updates.
Are there any pitfalls with this approach?