2.0.0
pavel-kuznetsov-hypertrack
released this
02 Oct 15:45
·
24 commits
to master
since this release
We are excited to announce the release of HyperTrack Flutter SDK 2.0.0, a major update to our location tracking SDK. This release ensures highest tracking performance, reduces deployed app sizes and comes with an improved API to simplify the integrations. We highly recommend upgrading, but please note that there are a few breaking changes. Check the Migration Guide.
Added
locate()
to ask for one-time user locationlocationSubcription
to subscribe to user location updateserrors
gettername
gettermetadata
getter- HyperTrackError types:
noExemptionFromBackgroundStartRestrictions
permissionsNotificationsDenied
Changed
- Updated HyperTrack Android SDK
to 7.0.3 - Add Android SDK plugins (
location-services-google
andpush-service-firebase
) - Updated HyperTrack iOS SDK to 5.0.2
- The whole HyperTrack API is now static
- Changed the way to provide publishableKey (
- You need to add
HyperTrackPublishableKey
meta-data
item to yourAndroidManifest.xml
and
the same entry toInfo.plist
)
- You need to add
- Renamed HyperTrackError types:
gpsSignalLost
tolocationSignalLost
locationPermissionsDenied
topermissionsLocationDenied
locationPermissionsInsufficientForBackground
topermissionsLocationInsufficientForBackground
locationPermissionsNotDetermined
topermissionsLocationNotDetermined
locationPermissionsProvisional
tolocationPermissionsProvisional
locationPermissionsReducedAccuracy
topermissionsLocationReducedAccuracy
locationPermissionsRestricted
topermissionsLocationRestricted
- Renamed
setAvailability()
tosetIsAvailable(boolean)
- Changed
startTracking()
andstopTracking()
tosetIsTracking(boolean)
- Renamed
onTrackingChanged
toisTrackingSubscription
- Renamed
onAvailabilityChanged
toisAvailableSubscription
- Renamed
onError
toerrorsSubscription
- Renamed
JSONValue
toJSON
Removed
initialize()
method (the API is now static)- Motion Activity permissions are not required for tracking anymore
- HyperTrackError types:
motionActivityPermissionsDenied
motionActivityServicesDisabled
motionActivityServicesUnavailable
motionActivityPermissionsRestricted
networkConnectionUnavailable
sync()
method