Skip to main content
← Data, API & Backend
Data, API & Backend May 5, 2025 · 2 replies

Issue with [require:location]

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Hello Bravo Community! I have a problem with the device location and the data i want to use. At first it worked and asked me fo permission to use location. But since then it seems like the tag doesn’t work. I tried [action:enable-location] on some buttons but no action either. I followed every step in the documentation but no results. Any advice or solutions?

2 replies

Pedro Bravo team May 12, 2025

Hi @Bozhidar Gushev below some potential troubleshooting steps. At the same time, do you recall making any changes that may have affected and stopped working?

  1. Verify Tag Placement:

    • Double-check that the [require:location] tag is correctly placed on the page-level layer and not nested within other elements.

    • Ensure that the [action:enable-location] tag is applied to interactive elements like buttons, not on containers or non-interactive layers.

  2. Check Device Location Settings:

    • On your device, go to Settings > Privacy > Location Services and confirm that location services are enabled for your app.

    • If your app isn't listed, it might not have requested location access properly. Reinstalling the app can sometimes resolve this.

  3. Test in Bravo Vision:

    • Use the Bravo Vision app to preview your project. When you navigate to the page with the [require:location] tag, it should prompt for location access.

    • If it doesn't, try tapping the element with the [action:enable-location] tag to manually trigger the permission prompt.

  4. Review API Bindings:

    • If you're using ${device.latitude} and ${device.longitude} in API requests, ensure that these variables are correctly bound and that the API endpoints are set up to handle them.
Bozhidar May 18, 2025

@Pedro Thank you! It works. I have messed up some of the things that you mentioned!

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord