Releases: radarlabs/react-native-radar
Releases · radarlabs/react-native-radar
3.15.0
- Enables remote configuration of SDK behavior, including starting tracking and automatically calling
trackOnce
on app open.
3.14.0
- Removes
Radar.requestForegroundLocationPermission()
,Radar.requestBackgroundLocationPermission()
,Radar.openAppSettings()
,Radar.getLocationPermissionStatus()
andRadar.on('locationPermissionStatus')
. See the SDK documentation for guidance on requesting location permissions.
3.13.0
- Improvements to cross platform compatibility of location permission manager functionality.
3.13.0-beta.1
- Improvements to cross platform compatibility of location permission manager functionality.
3.12.3
- Fixes
Radar.stopTrackingVerified()
. - Fixes
Radar.getPermissionsStatus()
to also return "GRANTED_FOREGROUND" when only coarse location is granted.
3.12.2
- Adds
Radar.stopTrackingVerified()
. - Adds
sharing
andblocked
toRadarFraud
type. - Improves
Radar.isTracking()
typing.
3.11.1
- Improves Android
getPermissionStatus
returning"NOT_DETERMINED"
when only coarse location is permitted. Now returns"GRANTED_FOREGROUND"
.
3.12.1
3.12.0
- Updates
Radar.trackVerified()
andRadarVerifiedDelegate.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 delegate withRadar.setVerifiedDelegate()
, location tokens are also delivered toRadarVerifiedDelegate.didUpdateToken()
. - Updates
Radar.geocode()
to accept optionallayers
andcountries
parameters. - Updates
Radar.reverseGeocode()
to accept an optionallayers
parameter.
3.11.0
- Improves beacon monitoring logic.