# Geolocation In Webviewer Not Working

**URL:** <https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640>\
**Category:** Questions about Thunkable X\
**Tags:** webviewer\
**Created:** [June 4, 2020, 11:31am UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640 "2020-06-04T11:31:31Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 4, 2020, 2:51pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/21 "2020-06-04T14:51:56Z")

</div>

I only see what the location data is for the Thunkable Live app

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 2:58pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/22 "2020-06-04T14:58:20Z")

</div>

Ok, can you at least tell me IF Thunkable offers working location services in the APK at all?

Also, HOW do I go about enabling location services in my Thunkable app? Am I doing it wrong?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 4, 2020, 2:59pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/23 "2020-06-04T14:59:41Z")

</div>

Add the Location component to the project and everything should work if you enable access to location detection in the installed app

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:02pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/24 "2020-06-04T15:02:47Z")

</div>

> [@actech](#):
>
> Add the Location component to the project and everything should work.

You mean, like this?

 ![Screen Shot 2020-06-04 at 3.02.01 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/b/7bb153db69b0d5fca18e6b114ae91cc7e7024275.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 4, 2020, 3:02pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/25 "2020-06-04T15:02:59Z")

</div>

Yes. I don’t understand why you decided to launch geolocation via WebViewer. Did you not know about the Location Sensor component, or are there any other reasons?

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:04pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/26 "2020-06-04T15:04:59Z")

</div>

> [@actech](#):
>
> Add the Location component to the project and everything should work if you enable access to location detection in the installed app

That was already done before this conversation started. It wasn’t working, which is why I came here to get help.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 4, 2020, 3:06pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/27 "2020-06-04T15:06:29Z")

</div>

Are you trying to tell me that the location component doesn’t work in the Android app?

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:06pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/28 "2020-06-04T15:06:49Z")

</div>

> [@actech](#):
>
> Yes. I don’t understand why you decided to launch geolocation via WebViewer. Did you not know about the Location Sensor component, or are there any other reasons?

My entire app is a webviewer app. It is a WEBSITE. Not built with blocks. It’s a website, and parts of it requires geolocation.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 4, 2020, 3:07pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/29 "2020-06-04T15:07:57Z")

</div>

Clear. Is your app already published on Google Play?

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:07pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/30 "2020-06-04T15:07:58Z")

</div>

Yes. It works in Android Browser, but NOT in the android app.

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:09pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/31 "2020-06-04T15:09:53Z")

</div>

Yes, but in the version I have released on Google play, I have removed the Store Locator feature (which needs working geolocation), because I haven’t been able to get it working.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 4, 2020, 3:13pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/32 "2020-06-04T15:13:09Z")

</div>

I made an apk for such blocks and it works on Android 9. When I open the app, are asked to enable geolocation.

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/2/c2d28a38b8901f64601d77f02b14224178b7b8b5.png)

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:17pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/33 "2020-06-04T15:17:10Z")

</div>

See, I don’t know anything about blocks, because I never thought I’d need them, since my app is a webviewer app.

I would just like to be told exactly what steps to take to get my webviewer app to detect location when installed on android.

That’s all I’m asking. When I was setting up the Webviewer, all I did was drag the Location Sensor into the Invisible Components box. Is there anything else I need to do? Alternatively, can you please get into my Thunkable X app and put the location detection blocks in for me? PLEASE?

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:25pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/34 "2020-06-04T15:25:25Z")

</div>

@actech Please don’t disappear. I’ve been struggling with this for a while, but I feel like we’re close to solving this.

Can you please repeat this in my app for me? I don’t know how to do it:

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/2/c2d28a38b8901f64601d77f02b14224178b7b8b5.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 4, 2020, 3:27pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/35 "2020-06-04T15:27:43Z")

</div>

Try this link and make apk

[https://x.thunkable.com/projects/5ed90e7750a3cd40203c58f0/project/properties/designer](https://x.thunkable.com/projects/5ed90e7750a3cd40203c58f0/project/properties/designer)

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:31pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/36 "2020-06-04T15:31:20Z")

</div>

@actech

Thank you! I see a “Label” in the middle of the screen. I hope it’s not going to show in my app? I just want the location coordinates to be available throughout the app when it loads, preferably as a javascript variable that I can then access in my code?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 4, 2020, 3:33pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/37 "2020-06-04T15:33:18Z")

</div>

I gave you an example for the test. Can you make an apk out of it and tell what is displayed on the screen?

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:33pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/38 "2020-06-04T15:33:47Z")

</div>

Sure. Doing that now. I’ll let you know.

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 3:41pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/39 "2020-06-04T15:41:35Z")

</div>

Generating the APK. When I install, I’ll come back here with results.

---

<div class="post-metadata">

**Author:** ![laudtetteh](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@laudtetteh](https://community.thunkable.com/u/laudtetteh)\
**Post date:** [June 4, 2020, 4:09pm UTC](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640/40 "2020-06-04T16:09:47Z")

</div>

@actech It’s working!!

 ![location-detected](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/1/91bd63d263cde23a5d542054f06191df26f7bd1a.jpeg)

But the “Label” is showing:

 ![label-showing](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/3/a37dfab9080a3bddf86764867634515cd32e42b6.jpeg)

Also, my Google Maps API feature is working now:

 ![working-map](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/d/2d04decd986cd5066fe44b1c9c5bc782c09dabac.jpeg)

Thank you so much. Now, how we get rid of the Label?

[Previous page](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640.md?page=1)

[Next page](https://community.thunkable.com/t/geolocation-in-webviewer-not-working/592640.md?page=3)
