# Location component stop working when I open/close screen

**URL:** <https://community.glideapps.com/t/location-component-stop-working-when-i-open-close-screen/74855>\
**Category:** Ask for Help\
**Created:** [July 12, 2024, 1:23pm UTC](https://community.glideapps.com/t/location-component-stop-working-when-i-open-close-screen/74855 "2024-07-12T13:23:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![smprod](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/smprod/32/75887_2.png) [@smprod](https://community.glideapps.com/u/smprod)\
**Post date:** [July 12, 2024, 1:23pm UTC](https://community.glideapps.com/t/location-component-stop-working-when-i-open-close-screen/74855/1 "2024-07-12T13:23:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 12, 2024, 2:56pm UTC](https://community.glideapps.com/t/location-component-stop-working-when-i-open-close-screen/74855/2 "2024-07-12T14:56:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 12, 2024, 3:02pm UTC](https://community.glideapps.com/t/location-component-stop-working-when-i-open-close-screen/74855/3 "2024-07-12T15:02:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 12, 2024, 5:33pm UTC](https://community.glideapps.com/t/location-component-stop-working-when-i-open-close-screen/74855/4 "2024-07-12T17:33:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 12, 2024, 11:48pm UTC](https://community.glideapps.com/t/location-component-stop-working-when-i-open-close-screen/74855/5 "2024-07-12T23:48:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [July 13, 2024, 12:55am UTC](https://community.glideapps.com/t/location-component-stop-working-when-i-open-close-screen/74855/6 "2024-07-13T00:55:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [July 20, 2024, 12:55am UTC](https://community.glideapps.com/t/location-component-stop-working-when-i-open-close-screen/74855/7 "2024-07-20T00:55:27Z")

</div>

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