Issue with Location tracking

I believe there is an issue with Location tracking in native mobile apps specifically when an app has been in the background and then is opened back up.

My app tracks a users distance from a point in order to make an option available to the user in the app. When I open the app at first, it tracks the user’s location and calculates the distance fine. But if i switch to another app, and my app goes to the background, then i pull my app back upto foreground (or tap on the app again), it no longer tracks my location and the distance calculation never happens again, unless i kill the app and restart. This is how it is behaving in a fully built and published app installed from the App store.

I put the Get Location and Calculate distance actions in the a recurring every 10 seconds event on the page. I also have it in the Page is loaded event.

Either I am doing something wrong (very possible!) or the app isnt waking and restarting properly and executing the recurring event. I save the location and distance to both the database on the User record and store it to an element state. Neither update from my observation in debugging.

I will open a bug, but wanted to see if anyone else is experiencing this or if i am doing something wrong.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.