Location Mocking
The Location mocking feature allows users to simulate a device’s geographic location. This is particularly useful for testing apps or features that are restricted to specific locations, eliminating the need for physical movement to different regions.
Use Case
Some applications or features are designed to function only in specific geographic locations and may not work if the device is moved outside those regions. Traditionally, users would need to physically travel to different locations to validate such behavior.
With location mocking, users can simulate different geographic locations directly within the console, enabling efficient testing of location-based features without the need for physical movement.
Steps to Mock Location
Navigate to Devices in the AstroFarm console.
Select a device and click Use.
Click on Location from the tabs.
When you navigate to the Location tab, the current location of the selected device is displayed on the map.
Use the Enable Location Mocking toggle to turn location mocking on or off as needed.
Once location mocking is enabled, the Update Location option becomes available. Click Update Location and select the desired location.
You can mock the device location using any of the following methods:
Search or Enter Coordinates
Search for a location using the search bar, or manually enter latitude and longitude coordinates.Use Bookmarked Locations
Select a location from previously saved (bookmarked) locations.
Click Apply.
Add Bookmarked Location
You can save frequently used locations for quick access:
From Location Page
- Click the Bookmark icon.
- Enter a label for the location.
- Click Save.
From Settings
- Navigate to Settings > Account Settings > Bookmarked Map Locations.
- Click Add.
- Enter a label and search for the location.
- Click Add to save.