# Google Maps bug on Android

**URL:** <https://community.thunkable.com/t/google-maps-bug-on-android/296509>\
**Category:** Questions about Thunkable X\
**Tags:** bug\
**Created:** [October 30, 2019, 11:28pm UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509 "2019-10-30T23:28:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)\
**Post date:** [October 30, 2019, 11:28pm UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/1 "2019-10-30T23:28:12Z")

</div>

Hi,

unfortunately the Google maps component does not properly work on Android. For example the show my location button is enabled but not shown in Android… Works fine on iOS. Is there a way to solve this? also the map “on user location change” block works perfectly fine on iOS to center the map at users location but on Android it does not seem to work at all or extremly slow and I have to use the location sensor instead because it would stick with the preset coordinates…

 ![Screenshot_20191030-225212](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/c/bca9704b76e6cb24a0455b168095065a9b308c3c.png)

Also - not directly map related: the “FAB” that I created and placed on top of the map has a weird different shadow on Android and iOS…

Any solutions or advices?

Best, Chris

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [October 31, 2019, 2:19am UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/2 "2019-10-31T02:19:58Z")

</div>

Hi, @Chris! 👋

> [@Chris](#):
>
> Also - not directly map related: the “FAB” that I created and placed on top of the map has a weird different shadow on Android and iOS…

Is this button **raised** or **elevated (advanced property)**?

---

<div class="post-metadata">

**Author:** ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)\
**Post date:** [October 31, 2019, 2:52pm UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/3 "2019-10-31T14:52:58Z")

</div>

Yes it is but in iOS it looks totally different 🤔 but more worrying is that the show user location button is just missing on Android 😕

---

<div class="post-metadata">

**Author:** ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)\
**Post date:** [November 13, 2019, 1:16am UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/4 "2019-11-13T01:16:42Z")

</div>

Hey @Chris, try adding a location sensor component in your project and then its “GetCurrentLocation” block at the top of your screen’s **Start** or **Open** events. I know it sounds silly as the Map component should automatically trigger and enable the device’s GPS but it really doesn’t on Android. So even if you don’t do anything with the “GetCurrentLocation” block, it will trigger the device’s GPS and enable the “My location” button.

There is also something else which is super interesting on Android. Let’s say you tap on a pin you place placed on a map. **Sometimes** this will make two icons appear on the bottom right of the map, one to navigate to that point using Google Maps and another to launch Google Maps and center to that point. What I noticed is related to the way Android handles background processes as if you have recently launched the Google Maps app and it still runs on the background, the above mentioned two icons **will** appear but if the Google Maps app does not run in the background either because the user closed it or the Android OS closed it to preserve memory, the two mentioned buttons will not appear when you tap on a pin.

You may want to check out my findings and come back with yours.

Konstantinos

---

<div class="post-metadata">

**Author:** ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)\
**Post date:** [November 14, 2019, 11:24am UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/5 "2019-11-14T11:24:18Z")

</div>

> [@Deluxe](#):
>
> Hey @gre4t\_wh1te, try adding a location sensor component in your project and then its “GetCurrentLocation” block at the top of your screen’s **Start** or **Open** events. I know it sounds silly as the Map component should automatically trigger and enable the device’s GPS but it really doesn’t on Android. So even if you don’t do anything with the “GetCurrentLocation” block, it will trigger the device’s GPS and enable the “My location” button.

Hi @Deluxe

thank you for this tipp. Unfortunately it is not working for me. I already added the get location block in the “OnMaploaded” because I had problems with Android not properly getting the location and I also tried to put it into “OnScreenStarts” but there is no location button displayed either 😕

I think I will have to add a own button that triggers “get current location” for Android and unfortunately I can’t align it to be displayed on the map because I realized that those buttons have no function on Android while working fine on iOS… ([Buttons placed above Maps component not working on Android OS · Issue #301 · thunkable/thunkable-issues · GitHub](https://github.com/thunkable/thunkable-issues/issues/301))

> [@Deluxe](#):
>
> There is also something else which is super interesting on Android. Let’s say you tap on a pin you place placed on a map. **Sometimes** this will make two icons appear on the bottom right of the map, one to navigate to that point using Google Maps and another to launch Google Maps and center to that point. What I noticed is related to the way Android handles background processes as if you have recently launched the Google Maps app and it still runs on the background, the above mentioned two icons **will** appear but if the Google Maps app does not run in the background either because the user closed it or the Android OS closed it to preserve memory, the two mentioned buttons will not appear when you tap on a pin.

Wow this is weird. I haven’t experienced this so far - might be related to which Android version one is using… My test device for Android is a Xiaomi Mi A1 with (stock) Android 9.

Best, Chris

---

<div class="post-metadata">

**Author:** ![emddom](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emddom/32/200_2.png) [@emddom](https://community.thunkable.com/u/emddom)\
**Post date:** [May 3, 2020, 8:52am UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/6 "2020-05-03T08:52:33Z")

</div>

Hi,

Unfortunately your advice

> try adding a location sensor component in your project and then its “GetCurrentLocation” block at the top of your screen’s **Start** or **Open** events.

didn’t work on my Android device, either.

However, I noticed that the **ShowsMyLocationButton**  
**appeared** when a _ **Text Input** _ on the same screen **got focus**.

The app I was using/modifying was the **Cole Valley Covid-19 by David Wolber** , also reachable on [youTube](https://youtu.be/Q-pUI-ckQAg)

Not a solution, but might help track down the “culprit” 🙂

Regards,  
“emddom”

.

---

<div class="post-metadata">

**Author:** ![jonathanvalgarlh4ow](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@jonathanvalgarlh4ow](https://community.thunkable.com/u/jonathanvalgarlh4ow)\
**Post date:** [May 24, 2020, 12:31am UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/7 "2020-05-24T00:31:27Z")

</div>

According to my experience, you have to use both:

- First you have to add the locationSensor, and then call “GetCurrentLocation” --\> In Android you will see one alert window asking for permison (the first time), you have to accept it.

- Add a Text Imput and get it focused as @emddom said

Black magician?? Maybe…

---

<div class="post-metadata">

**Author:** ![bymaho](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bymaho/32/56102_2.png) [@bymaho](https://community.thunkable.com/u/bymaho)\
**Post date:** [May 24, 2020, 12:48pm UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/8 "2020-05-24T12:48:59Z")

</div>

![Ekran Alıntısı](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/d/cdb21545a2d9fcce1f591dbeb1cfe469dad74034.png)

this code means = white screen crash. what is changed? It was working. But now when “longpress, on marker press” etc. app crashes. is there an update or something?

---

<div class="post-metadata">

**Author:** ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)\
**Post date:** [June 21, 2020, 8:03am UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/9 "2020-06-21T08:03:22Z")

</div>

idk but they messed something up and now it results in a blank screen, which is really annoying 🙄

---

<div class="post-metadata">

**Author:** ![bymaho](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bymaho/32/56102_2.png) [@bymaho](https://community.thunkable.com/u/bymaho)\
**Post date:** [June 21, 2020, 11:55am UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/10 "2020-06-21T11:55:10Z")

</div>

Its been a month for fixing. I didn’t even wait in expectations for my own wedding 🙂 This is much painful.

---

<div class="post-metadata">

**Author:** ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)\
**Post date:** [June 21, 2020, 12:15pm UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/11 "2020-06-21T12:15:57Z")

</div>

yeah this is really annoying - I regret paying again for the PRO version, as there are so many old and even new bugs that prevent me from continuing work on my projects… the platform is just not yet usable for professional work what the PRO plan suggests… it‘s really sad but I think I might be better of learning react native myself and create my projects elsewhere 😕 I guess I will have enough knowledge in the same time or even earlier than it takes to fix these annoying bugs… because some (like the textbox and image issues) don’t even seem like they where worked on for months / years now…

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:25am UTC](https://community.thunkable.com/t/google-maps-bug-on-android/296509/12 "2024-11-08T11:25:36Z")

</div>


