Loading
Mobile Publisher for Experience Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Implement and Use Location-Based Features

          Implement and Use Location-Based Features

          Show the current position on a map, provide directions, save the location when creating or updating a record, and otherwise add location awareness to your branded mobile apps.

          Note
          Note Using the LocationService API to create contact-based features works only in the mobile app, and not on mobile or desktop web.

          You can develop and implement a Lightning web component using the LocationService API to get the current location, location updates, and access location-based features for your mobile app users.

          Using LocationService in your Lightning web component is straightforward.

          1. Import LocationService into your component definition.
          2. Test to make sure LocationService is available before you call location functions.
          3. Use the location functions to get or track the current location.

          For complete details, see Use Location on a Mobile Device in the Lightning Web Components Developer Guide.

          Note
          Note To use LocationService API with a Mobile Publisher Android app, turn on the Fine Location app permission in Setup for Mobile Publisher. See Enable App Permissions for Device Capabilities for instructions.
           
          Loading
          Salesforce Help | Article