Skip to content

3.12.0

Compare
Choose a tag to compare
@ShiCheng-Lu ShiCheng-Lu released this 30 Jul 17:19
· 4 commits to master since this release
1ce1499
  • Enables remote configuration of SDK behavior, including automatically calling Radar.trackOnce() on app open, and automatically calling Radar.startTracking().
  • Updates Radar.trackVerified() and RadarVerifiedReceiver.didUpdateToken() to return token: RadarVerifiedLocationToken, which includes user, events, token, expiresAt, expiresIn, and passed. Use token.passed to allow or deny access to app features, and optionally send token.token (a signed JWT) to your server to validate the signature.
  • Removes Radar.trackVerifiedToken(), since Radar.trackVerified() now returns a signed JWT.
  • Instead of calling Radar.trackVerified(), which always fetches a fresh location token, you can instead call Radar.getVerifiedLocationToken(), which returns a cached location token immediately if the last location token is still valid, or fetches a fresh location token if not.
  • You can also call Radar.startTrackingVerified() to fetch and cache location tokens in the background automatically on connection changes, on the specified interval, or more frequently if token.expiresIn < interval (based on current state, distance to border, and so on). If you set a receiver with Radar.setVerifiedReceiver(), location tokens are also delivered to RadarVerifiedReceiver.onTokenUpdated().
  • Adds layers to Radar.reverseGeocode() and layers, countries to Radar.geocode()
  • Adds an includeGeometry parameter to Radar.searchGeofences().
  • Updates Native SDKs to version 3.16.0.