Stop asking for user location

Hey Bubble Community,

My index page keeps asking for the users location when they land… even though I’ve removed all location based searches, inputs, and conditionals from the page. Is there something I am missing?

I’m am trying to get my app to stop asking user for location on homepage… and wait until they click specific buttons that prompt location use.

If you have the dynamic expression for ‘current geographic location’ it will prompt the user to consent to providing that data.

If you want to restrict it only when the user has taken some action, you would want to utilize custom states and conditionals to set the datasource to the ‘current geographic position’ conditionally and use the custom state as the condition and set the state value when the user takes the actions like pressing a button.

2 Likes

Thanks for the response. I HAD that expression… but then REMOVED it. But it’s still asking on page load.

Is it possible I have some type of cache causing it to still ask even though no more expressions are using location on that page?

*Right now there is ZERO expressions/inputs/conditions/workflows referencing location.

Maybe there is a plugin that is installed that is requesting it

1 Like

I don’t think that’s the cause… cuz some pages doen’t ask for it. I think it’s a cache issue. I submitted a support ticket. When I find out I’ll post answer here!

1 Like

So as I expected… it was some type of cache on the repeating group. Removing the location sorting by user location was not enough… I had to clear the search expression and write it again without the location sorting.

Transitioning… What’s the best way to get a non-logged in users general location (like city) from their IP? Is there a reliable script or plugin that does this?

1 Like

I’d like to know that last one too…

Do you possibly have an example of how to do this? I don’t see any options to set the location based on conditions with the base map that is included by default.
Thanks.