Skip to main content

Start GPS Location Tracking

Start GPS Location Tracking allows app to continuously track the device's geographical location, even when the app is in the background or the device is in sleep mode.

NOTE

Support is available only in Android and iOS apps. This action is not applicable for preview and is functional only in the published app. Additionally, Android versions 8.3.34 & above and iOS versions 8.3.27 & above are supported.

Steps to Use

Go to the Action Builder. Click + Add Action > Native > Start GPS Location Tracking.

Start GPS Location Tracking
Start GPS Location Tracking

Parameters for Secure API Call

Here are the key components of the Start GPS Location Tracking action:

Configuration FieldPlatformDescription
Endpoint UrlAndroid, iOSServer url where to send HTTP POST with recorded locations.
HeadersAndroid, iOSOptional HTTP headers sent along in HTTP request. Provide Key value pairs ex: {"Content-Type": "application/json"}
BodyAndroid, iOSAll wanted location properties have to be prefixed with @. For all available properties check Location event. For Example: {"latitude" : "@latitude", "longitude" : "@longitude", "foo": "bar" } where, @latitude and @longitutude will be replace by actual user’s location lat and long respectively while sending api call.
Desired AccuracyAndroid, iOSDetermines how precise the location updates should be. Desired Accuracy defaults to High Accuracy. High - GPS + WiFi/Cell 5-20m accuracy. ex: Ride-sharing, delivery apps. Medium - Uses WiFi/Cell towers primarily 20-100m. Low - Cell towers only 100m-1km. ex: Weather apps, city-level tracking. Passive - Only receives updates when others request location. Battery-saving mode, background logging.
Location ProviderAndroidUsed to obtain location data. Different providers offer different balances of accuracy, battery efficiency, and availability. Location Provider defaults to Android Distance Filter Provider. Android Distance Filter Provider - 5-50m Medium-High Accuracy. ex: Delivery apps, ride-sharing, most tracking needs. Android Activity Provider - 10-100m Variable. ex: Fitness apps, jogging. Raw Provider - 1-5m Very High. ex: Surveying, specialized apps needing raw GPS. Fused Provider - 5-20m High. ex: Most modern location-aware apps.
Stationary RadiusAndroid, iOSMinimum distance in meters the device must move beyond stationary location for aggressive tracking to engage. Stationary Radius defaults to 50 meters. 10–30m - High Precision tracking (e.g., geofencing, delivery apps).30–75m - Urban/suburban tracking.100–200m - Fleet tracking or infrequent movement checks.
Distance FilterAndroid, iOSMinimum distance in meters a device must move before an update event is generated. Distance Filter defaults to 50 meters. 1–10m - High-precision tracking (e.g., jogging, surveying). 10–30m - Urban navigation, ride-sharing, delivery apps .30–100m - Fleet tracking, general location updates. 100m+ - Long-distance travel, battery-saving mode.
Notifications (Optional)AndroidEnable/disable local notifications when tracking and syncing locations.
Notification Title (Optional)AndroidCustom notification title in the drawer.
Notification Text (Optional)AndroidCustom notification text in the drawer.
IntervalAndroidMinimum time interval (ms) between location updates. When entering Interval defaults to 10000 ms means 10 seconds.
Fastest IntervalAndroidFastest rate (ms) at which your app can handle location updates. When entering Fastest Interval defaults to 5000 ms means 5 seconds.
Activities IntervalAndroidRate (ms) at which activity recognition occurs. Higher values = fewer detections, better battery. When entering Activities Interval defaults to 10000 ms means 10 seconds.
Pause Location UpdatesiOSPauses location updates when app is paused.
Save Battery On BackgroundiOSSwitch to less accurate significant changes and region monitory when in background
Start GPS Location Tracking Configuration
Native Action - Start GPS Location Tracking Configuration

Use Cases

  • Fleet Management - Track vehicles in real-time
  • Fitness Apps - Record jogging/cycling routes
  • Safety Apps - Emergency location sharing
  • Field Service - Technician location monitoring

After configuring the Start GPS Location Tracking action, the app will start tracking the gps location even when user in background. Users can view the tracking details using configured endpoint url.