GPS Capturing Support
GPS locations can be captured in the foreground (i.e. the user can see that the location is being captured) or in the background using the gps component. To use the gps component, you need to define an attribute or variable with type location.
Example — "Foreground" Capturing
The following example shows how GPS location capturing can be performed in the "foreground" i.e. the user sees a map showing how their GPS location is captured.
Example — "Background" Capturing
The following example shows how GPS location capturing can be performed in the "background" i.e. the user does not see an indication in the app that the location is being captured.