# Location Sensor Unable to retrieve location with cellular data

**URL:** <https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946>\
**Category:** Questions about Thunkable X\
**Tags:** locationsensor\
**Created:** [September 2, 2021, 6:49am UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946 "2021-09-02T06:49:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aikansh.dua044gefzj](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aikansh.dua044gefzj](https://community.thunkable.com/u/aikansh.dua044gefzj)\
**Post date:** [September 2, 2021, 6:49am UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/1 "2021-09-02T06:49:26Z")

</div>

Hi Everyone,  
I am unable to retrieve the location with the location sensor with cellular data. I can get the coordinates by using a Wi-Fi connection. When I use cellular data it doesn’t provide coordinates and reverse geocoding doesn’t work. I tried it both in the thinkable live app and the apk version of the app. The issue only applies to android, however. The code I’m using is attached below. Pls, guide me in fixing this issue.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/ab20f543ba570d19aeded5132f5ba4324041bf77.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 2, 2021, 8:30am UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/2 "2021-09-02T08:30:15Z")

</div>

What is the `error` message saying?

---

<div class="post-metadata">

**Author:** ![aikansh.dua044gefzj](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aikansh.dua044gefzj](https://community.thunkable.com/u/aikansh.dua044gefzj)\
**Post date:** [September 2, 2021, 12:53pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/3 "2021-09-02T12:53:57Z")

</div>

The error showing is `Error: Location provider is unavailable. Make sure that location services are enabled.` I cross-checked the app permission **location** it was on for the thunkable live app too. Now I’m trying it with a Wi-Fi connection and now it’s not showing the location again. This is not a device issue I tried it with at least 15-20 devices of my friends and family and most of them are facing the same issue it worked for only 2 devices out of 15. Can you tell me how can I fix this?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 2, 2021, 1:27pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/4 "2021-09-02T13:27:30Z")

</div>

The first step is to remove (uninstall) the app from the phone.  
From Thunkable create a new APK and install it and try again.

---

<div class="post-metadata">

**Author:** ![aikansh.dua044gefzj](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aikansh.dua044gefzj](https://community.thunkable.com/u/aikansh.dua044gefzj)\
**Post date:** [September 2, 2021, 2:02pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/5 "2021-09-02T14:02:27Z")

</div>

Hi,  
I tried it in the live app and the apk app I got the same error as before.I made changes to my blocks  
(basically removed the map component)

The image is attached below . It still didn’t work and the same error appeared this works perfectly on the live app for IOS device.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a3c3a1dfb95ea6f218582b27c0494f737edc05c.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 2, 2021, 2:32pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/6 "2021-09-02T14:32:16Z")

</div>

Will create a sample app using `GetCurrentLocation` and test it on my phone to check.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 2, 2021, 2:43pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/7 "2021-09-02T14:43:39Z")

</div>

Yes, @aikansh.dua044gefzj you are correct.

There is a problem that needs Thunkable attention.

 ![Screenshot_20210902_174148](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/c/dc7fb832021466b886123e8efd8cfa948bc02deb.jpeg)

@domhnallohanlon @jane @webinar.dokter

---

<div class="post-metadata">

**Author:** ![aikansh.dua044gefzj](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aikansh.dua044gefzj](https://community.thunkable.com/u/aikansh.dua044gefzj)\
**Post date:** [September 6, 2021, 11:52am UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/8 "2021-09-06T11:52:21Z")

</div>

[@staff](https://community.thunkable.com/groups/staff)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 11:57am UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/9 "2021-09-06T11:57:58Z")

</div>

Can you check the APK?

I checked it and found working most of the time.

---

<div class="post-metadata">

**Author:** ![aikansh.dua044gefzj](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aikansh.dua044gefzj](https://community.thunkable.com/u/aikansh.dua044gefzj)\
**Post date:** [September 6, 2021, 1:08pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/10 "2021-09-06T13:08:05Z")

</div>

Hi, @muneer It doesnt work for me.  
The blocks I am using are  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/6/a6b491e81d3c57572ee7465f7ab91b7edf6eda2a.png)  
The output

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/a/da11023e6980f40209b308477af876905dfdc451.png)  
If its working for you can you share the apk with me for the same?

I tried using the apk too and got the same output

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 1:11pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/11 "2021-09-06T13:11:42Z")

</div>

I must say that the issue is not fully fixed. It now respond better in DnD but still does not work on StP.

I’m following up with Thunkable to see if it should be reported as a BUG or it’s something they can fix in a day or two.

As it is now Monday, let’s wait a while and will follow up again.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 6, 2021, 2:25pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/12 "2021-09-06T14:25:29Z")

</div>

Today is also Labor Day which is a holiday in the U.S. so they may not be working today.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 2:27pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/13 "2021-09-06T14:27:06Z")

</div>

Happy Labor Day @tatiang . Enjoy your day.

Thanking you for the info.

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [September 13, 2021, 2:02pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/14 "2021-09-13T14:02:56Z")

</div>

Hi there,

Unfortunately, this seems to be an issue with Expo, who provide the framework we use to build apps.  
﻿  
﻿You can see discussion of this behavior on Expo’s Github [here](https://github.com/expo/expo/issues/14248).  
﻿  
﻿Thunkable team member Jose has deployed a partial fix.  
﻿  
﻿Depending on your version of Android, you may need to set `EnableHighAccuracy` to `false` for Location Sensor to work as expected on your device. I use Android 11 and I don’t need to do this, but Jose reports needing to do this for Location Sensor to work on Android 10.  
﻿  
﻿Unfortunately, since this is an issue with Expo, this won’t be completely resolved until Expo deploy a fix of their own. They have promised for this fix to come out in Expo v43.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 13, 2021, 2:11pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/15 "2021-09-13T14:11:15Z")

</div>

Thank you.  
I tested it during the weekend and it was working fine. I use Android 9 and did not need to change anything in my project.

---

<div class="post-metadata">

**Author:** ![aikansh.dua044gefzj](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aikansh.dua044gefzj](https://community.thunkable.com/u/aikansh.dua044gefzj)\
**Post date:** [September 24, 2021, 5:00pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/16 "2021-09-24T17:00:24Z")

</div>

@muneer @jane  
Hi, the location works but occasionaly for example I have attached a video below showing this I was thinking may be I could do a loop while error was there but wasn’t able to figure it out can anyone help me with that .  
[The link for the video](https://drive.google.com/file/d/19BSNIKPejKMMXzRna7uaYqQsb38UYspf/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 24, 2021, 5:18pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/17 "2021-09-24T17:18:25Z")

</div>

I watched your video but could not see the error.

Can you test this  
[https://x.thunkable.com/projectPage/614a172ecc8c0700111750c0](https://x.thunkable.com/projectPage/614a172ecc8c0700111750c0)

The button will start / stop the timer which will get the location every second

---

<div class="post-metadata">

**Author:** ![aikansh.dua044gefzj](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aikansh.dua044gefzj](https://community.thunkable.com/u/aikansh.dua044gefzj)\
**Post date:** [September 24, 2021, 5:23pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/18 "2021-09-24T17:23:49Z")

</div>

Hi,@muneer I tried your app it worked fine since it was made on DnD my app is made on default thunkbale platform .The error was that Location provider is unavailable, it continued to show that 3-4 times as shown in video at last it finally showed the location.I was thinking maybe I could use a loop to call the location till there was no error but wasn’t able to figure it out

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 24, 2021, 5:25pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/19 "2021-09-24T17:25:51Z")

</div>

Let me build a quick project in StP (Snap to Place) UI and we both do the test.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 24, 2021, 5:34pm UTC](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946/20 "2021-09-24T17:34:00Z")

</div>

> [@muneer](#):
>
> I watched your video but could not see the error.

Here’s a still from the 0:03 mark in the video:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/1/e18649bdf4db8abe4a776cfe8761906811a9d1d4.png)

[Next page](https://community.thunkable.com/t/location-sensor-unable-to-retrieve-location-with-cellular-data/1482946.md?page=2)
