

Once you have download, proceed to install by clicking on android studio exe file.Ģ. Once stopped, the device will need to move more than 100 meters to wake up and start moving again.Īssuming the user has authorized background permissions, background tracking will work even if the app has been backgrounded or killed, as Android location services will wake up the app to deliver events and the SDK uses JobScheduler to schedule network requests.It is very simple to install, Please Download Android Studio (which includes Android SDK ) from Official Android website.ġ. When stopped, it tells the SDK to shut down to save battery. When moving, it tells the SDK to send location updates to the server every 2-3 minutes. This preset detects whether the device is stopped or moving. The SDK supports custom tracking options as well as three presets.įor geofencing, we recommend using RadarTrackingOptions.RESPONSIVE.

Once you have initialized the SDK and the user has authorized background permissions, you can start tracking the user's location in the background. Not seeing your user on the Users page? Check status in the callback to see what went wrong. RadarStatus.ERROR_UNKNOWN: unknown errorīuild and run the app, then find your user on the Users page! To trigger an event, you'll need to create a geofence if you haven't already.RadarStatus.ERROR_SERVER: internal server error.RadarStatus.ERROR_RATE_LIMIT: too many requests ( rate limit exceeded).RadarStatus.ERROR_FORBIDDEN: forbidden (insufficient permissions).RadarStatus.ERROR_PAYMENT_REQUIRED: payment required (organization disabled or usage exceeded).RadarStatus.ERROR_UNAUTHORIZED: unauthorized (invalid API key).RadarStatus.ERROR_BAD_REQUEST: bad request (missing or invalid params).RadarStatus.ERROR_NETWORK: network error or timeout (10 seconds).RadarStatus.ERROR_LOCATION: location services error or timeout (10 seconds).RadarStatus.ERROR_PERMISSIONS: location permissions not granted.RadarStatus.ERROR_PUBLISHABLE_KEY: SDK not initialized.You may provide an optional instance of RadarCallback with an implementation of onComplete() that receives the request status, the user's location, the events generated, if any, and the user.
