Current Location on Map not working

Having a problem with the “location sensor” or “get current location” block actually working onMapReady. I have a map on my first screen that I want to show the current location of the user. Live testing in the Thunkable app is not working.

First off, what is the difference between the two? I have seen some posts to use the location sensor which I currently have in place but doesn’t work. I started with the "Location > get current location block but that didn’t yield anything either.

Here is my current state which I followed from a previous post and it does not update the location on the map? What am I doing wrong?

Hi michaelkiog9x, welcome to Thunkable! :tada:

Be sure to check out How to ask Great Questions v2.0, the Community Guidelines, and our Getting Started Guide to make the best of your Thunkable Community experience!

The Map and location blocks are not supported on the web, either through web preview or when you are building your app in the Design Editor. Please connect to the Thunkable Live app or download your app to see them active.

Hi @matt_conroy - yes, that is how I am testing it, via the Thunkable Live app. This weekend I was out of town testing my app and every time I opened it, the location marker on the map never reflected my new location…is always on my home location.

Thanks, I will have to check this out to see what is happening. Will keep you updated as we know more.

Can you try this small MVP project and see if the location is setting correctly? It’s working fine for our testing on iOS and Android?

https://x.thunkable.com/copy/cf25ede5333dc3089e80dfa9bf1b706a

If it is not, I would ensure that you have location settings correct for the Thunkable Live app and that, if using a downloaded app, you have the Google API key entered correctly.

Well, I tested that MVP but couldn’t get it to change off the San Fran location to my Charlotte, NC location either on Map Ready or pressing the button.

I checked the Thunkable app settings on my phone and have Location set to Always with Background refresh ON.

Here is a screen shot of my Google Maps API settings which has most of the APIs/SDKs turned on. The single key that I get for Show Key i have in the 3 Google Map Settings fields in the Thunkable App Settings area.

In general, I would recommend the ‘get current location’ block.

Did you try it without adding your own key?

So I have tried everything you have suggested and still no joy. Here is my current logic. I put in a label_HomeErrorInfo to show a value if success or failure to see if something is actually happening but that doesn’t even display anything.

This seems odd to me. I put my Google API key back into the settings and no change.

Hi @michaelkiog9x
Maybe the Tracking is not activated on the app settings.
Please go to the settings, find and select Thunkable app.

There you will see all the permissions requested for this specific app.

Please check if the “Allow Tracking” is appearing and turn it on.

Also, could you please activate the option to “Allow Apps to Request to Track” in the device’s settings?

Hi @ioannis ! That App settings screen has more options than mine. Is that a difference between the Free and Builder/Advanced plans? I do not see Photos, BT, Microphone, Speech Reco, Notifications or Allow Tracking…

Hi @michaelkiog9x
The needed permissions are based on the features used in your projects.

The issue is caused by the “Allow Tracking” that is missing.

Have you activated the option to “Allow Apps to Request to Track” in your device’s settings?