Troubleshooting Location Features

Overview

This guide provides steps to troubleshoot the "Location not available" error encountered by users attempting to access location data within an app. This error can arise due to several reasons, ranging from device settings to API configuration issues. Follow the steps below to identify and resolve the problem.

Potential Causes and Solutions

  1. App Permissions Not Granted: Ensure you have included the "Request Location Permissions" Action in your app per the Location Permissions Help Doc. This must be placed after the User Logs into your app but before Location can be accessed. We recommend adding to the Home Screen.

  2. Location Services Disabled: The device’s location services might be turned off. Ensure they are turned on in the User Device settings.

  3. Google API Key Issues: There might be an issue with the Google API key configuration. Ensure you have followed the steps in the Location API Keys Doc.

    1. API Key Not Enabled for Required APIs:

      • Go to the Google Cloud Console.

      • Ensure that the following APIs are enabled:

        • Geocoding API

        • Maps JavaScript API

        • Places API

        • Geolocation API

        • Maps SDK for Android (If using the Maps Component)

        • Maps SDK for iOS (If using the Maps Component)

    2. API Key Restrictions:

      • Ensure that the API key is correctly configured without overly restrictive settings.

      • Navigate to the API key settings in the Google Cloud Console.

      • Verify that the key restrictions (e.g., IP addresses, Android package name, iOS bundle ID) are properly set.

    3. Billing Issues:

      • Ensure that your Google Cloud project is linked to a valid billing account.

      • Check for any issues or alerts related to billing in the Google Cloud Console.

Still Need Help?

If you're stuck, don't worry! Reach out to our support team for further assistance.

  1. Include Steps Taken: Let us know what troubleshooting steps you've already tried.

  2. Add Screenshots: Share relevant screenshots showing the error message along with the Google API Setup.

  3. Include credentials and steps to reproduce within your app.

Last updated