Current Device Location
This property is used to get the current device location (aka geolocation). You can access this when the Source is set to Global Properties.
You can use this property to get the user's current location to update on Google Map or store it in the backend database.
There can be many use cases that involve retrieving the user's geolocation, but for simplification, let's see the typical use case of getting the current device location and passing it to a widget (that supports accepting LatLong, for example, Google Map).
Here is an example of how you can retrieve the current device location:
- Select the widget (e.g. GoogleMap) from the widget tree or canvas area.
- Move to the properties panel, find the Initial Location property and click on Set from Variable.
- Set the Source to Global Properties.
- Set the Available Options to Current Device Location.
- Click Confirm.

Getting current device location
Here are the series of steps that you can follow to save the user's current location (Geolocation) in the Firestore document.
- Create a LatLng field in your Firestore Schema.

Creating LatLong Field
- After this, you need to set this field from a variable source and select Current Device Location from the Global Properties.

Passing current location in LatLong Field
Last modified 9mo ago