Location component stop working when I open/close screen

I am experiencing an issue with the Location component in my Glide app. When I enable the Location component to get the user’s current coordinates, it works fine. However, when I navigate to another screen and then return, the Location component turns off and stops receiving coordinates.

I need the component to continue working and receiving coordinates in real-time, even when I switch between screens. Is there a way to configure the Location component so that it does not turn off when switching screens? Or is there another method to obtain real-time coordinates in a Glide app?

@Jeff_Hager Do you know since your last test, does the location component still update the real time coordinates?

Let me test it. It doesn’t seem to update as rapidly as it used to, so I’m not sure. I’ll be going for a drive shortly, so I’ll try it out.

2 Likes

Looks like it does still track live location. I think it updates every 5 seconds for me unless I have another app that is actively using the GPS, then it updates about every 2 seconds and seems a little more accurate.

I think when I checked before, it seemed like it would get the location once and stick, but I was probably wrong. Just needed to move around a bit.

1 Like

Does it work if you switch screens like @smprod said? I guess yes?

Yes, that does appear to be the case. I think setting a target for the new screen to be an Overlay or Slide In could mitigate that.

1 Like

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