Skip to content

11.0.0

Compare
Choose a tag to compare
@pavel-kuznetsov-hypertrack pavel-kuznetsov-hypertrack released this 14 Sep 13:44
· 30 commits to master since this release
613295f

We are excited to announce the release of HyperTrack React Native SDK 11.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 location
  • subscribeToLocation() to subscribe to user location updates
  • getErrors()
  • getName()
  • getMetadata()
  • HyperTrackError types:
    • noExemptionFromBackgroundStartRestrictions
    • permissionsNotificationsDenied

Changed

  • ⚠️ WARNING: The device ID will be changed after the update to this version. (fixed in the 11.0.9 release)
  • Add Android SDK plugins (location-services-google-19-0-1 and push-service-firebase)
  • Updated HyperTrack iOS SDK to 5.0.1
  • The whole HyperTrack API is now static
  • Changed the way to provide publishableKey (you need to add HyperTrackPublishableKey meta-data item to your AndroidManifest.xml)
  • Renamed HyperTrackError types:
    • gpsSignalLost to locationSignalLost
    • locationPermissionsDenied to permissionsLocationDenied
    • locationPermissionsInsufficientForBackground to permissionsLocationInsufficientForBackground
    • locationPermissionsNotDetermined to permissionsLocationNotDetermined
    • locationPermissionsProvisional to locationPermissionsProvisional
    • locationPermissionsReducedAccuracy to permissionsLocationReducedAccuracy
    • locationPermissionsRestricted to permissionsLocationRestricted
  • Renamed isAvailable() to getIsAvailable()
  • Renamed isTracking() to getIsTracking()
  • Renamed setAvailability() to setIsAvailable(boolean)
  • Changed startTracking() and stopTracking() to setIsTracking(boolean)
  • Renamed subscribeToTracking() to subscribeToIsTracking()
  • Renamed subscribeToAvailability() to subscribeToIsAvailable()

Removed

  • initialize() method (the API is now static)
  • SdkInitParams (the config now should be done with the AndroidManifest metadata and Info.plist)
  • Motion Activity permissions are not required for tracking anymore
  • HyperTrackError types:
    • motionActivityPermissionsDenied
    • motionActivityServicesDisabled
    • motionActivityServicesUnavailable
    • motionActivityPermissionsRestricted
    • networkConnectionUnavailable
  • sync() method