Releases: radarlabs/capacitor-radar
Releases · radarlabs/capacitor-radar
3.12.1
3.12.0
- Enables remote configuration of SDK behavior, including automatically calling
Radar.trackOnce()
on app open, and automatically callingRadar.startTracking()
. - Updates
Radar.trackVerified()
andRadarVerifiedReceiver.didUpdateToken()
to returntoken: RadarVerifiedLocationToken
, which includesuser
,events
,token
,expiresAt
,expiresIn
, andpassed
. Usetoken.passed
to allow or deny access to app features, and optionally sendtoken.token
(a signed JWT) to your server to validate the signature. - Removes
Radar.trackVerifiedToken()
, sinceRadar.trackVerified()
now returns a signed JWT. - Instead of calling
Radar.trackVerified()
, which always fetches a fresh location token, you can instead callRadar.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 specifiedinterval
, or more frequently iftoken.expiresIn < interval
(based on current state, distance to border, and so on). If you set a receiver withRadar.setVerifiedReceiver()
, location tokens are also delivered toRadarVerifiedReceiver.onTokenUpdated()
. - Adds
layers
toRadar.reverseGeocode()
andlayers
,countries
toRadar.geocode()
- Adds an
includeGeometry
parameter toRadar.searchGeofences()
. - Updates Native SDKs to version
3.16.0
.
3.11.0
- Adds Android module namespace for Capacitor 5 and 6 compatibility.
3.10.0
- Upgrades from
@capacitor/core
3.0.0 to 4.0.0.
3.9.2
- Upgrades Radar Android SDK to 3.9.8 and iOS SDK to 3.9.14.
- Improves processing of locations from geofence intents. (Android only)
- Adds
FOREGROUND_SERVICE_LOCATION
permission to Android manifest. (Android only) - Improves foreground service starting and stopping. (Android only)
- Improves the reliability of Google Play Integrity API requests. (Android only)
- Exposes
user.failed_fraud
anduser.arrived_at_wrong_trip_destination
event types. - Exposes
passed
,inExclusionZone
,inBufferZone
, anddistanceToBorder
onRadarRegion
. - Exposes
inaccurate
onRadarFraud
. - Improves the latency of
Radar.trackVerified()
calls. - Improves significant location change and visit monitoring logic. (iOS only)
- Increases the amount of nearby geofences monitored. (iOS only)
- Attaches the privacy manifest in the
podspec
andpackage.swift
for automatic inclusion in projects usingCocoapods
andSPM
. (iOS only) - Adds jailbreak detection to
Radar.trackVerified()
andRadar.startTrackingVerified()
. (iOS only) - Resolves CocoaPods issue. (iOS only)
- Increases the frequency and accuracy of location updates when
desiredAccuracy
=high
. (iOS only)
3.9.1
- Upgrades Radar Android SDK to
3.9.5
and iOS SDK to3.9.7
. - Adds lifecycle logging methods
logTermination()
(iOS only),logBackgrounding()
, andlogResigningActive()
. - Adds
setNotificationOptions()
for Android and exposesRadarNotificationOptions
. - Adds
isUsingRemoteTrackingOptions()
. - Adds
getHost()
. - Adds
getPublishableKey()
. - Adds
replayed
,createdAt
, andactualCreatedAt
fields toRadarEvent
. - Adds
iconColor
andiconString
fields toRadarTrackingOptionsForegroundService
.
3.9.0
- Upgrades Radar Android SDK to
3.9.3
and iOS SDK to3.9.5
. - Adds a
beacons
param toRadar.trackVerified()
andRadar.trackVerifiedToken()
to support beacon ranging. - Adds
Radar.startTrackingVerified(token, interval, beacons)
, which callsRadar.trackVerified()
orRadar.trackVerifiedToken()
everyinterval
seconds or on network connection changes and delivers updates to listeners. - Adds a
token
listener fortoken
updates.
3.8.0
- Upgrades Radar Android SDK to
3.8.17
and iOS SDK to3.8.11
. - Adds
Radar.trackVerifiedToken()
.
3.7.3
3.7.2
- Fixes
Radar.getTripOptions()
andRadar.getTrackingOptions()
. See migration guide. - Supports location-triggered notifications for Radar events. Set
radar:entryNotificationText
orradar:exitNotificationText
on geofence or beacon metadata to trigger notifications for entry and exit events respectively, andradar:approachingNotificationText
andradar:arrivalNotificationText
on trip metadata to trigger notifications for approaching and arrival events respectively. - Upgrades Radar Android SDK to
3.8.4
and iOS SDK to3.8.2
. - Fixes
scheduledArrivalAt
bug on iOS. - Enables logging to be remotely enabled when using a live publishable key.
- Improves TypeScript definition for
RadarAddress
.