Skip to content

2.0.0

Compare
Choose a tag to compare
@pavel-kuznetsov-hypertrack pavel-kuznetsov-hypertrack released this 02 Oct 15:45
· 12 commits to master since this release
05962d0

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 location
  • locationSubcription to subscribe to user location updates
  • errors getter
  • name getter
  • metadata getter
  • HyperTrackError types:
    • noExemptionFromBackgroundStartRestrictions
    • permissionsNotificationsDenied

Changed

  • Updated HyperTrack Android SDK
    to 7.0.3
  • Add Android SDK plugins (location-services-google and push-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 your AndroidManifest.xml and
      the same entry to Info.plist)
  • 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 setAvailability() to setIsAvailable(boolean)
  • Changed startTracking() and stopTracking() to setIsTracking(boolean)
  • Renamed onTrackingChanged to isTrackingSubscription
  • Renamed onAvailabilityChanged to isAvailableSubscription
  • Renamed onError to errorsSubscription
  • Renamed JSONValue to JSON

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