Skip to content

Releases: hypertrack/sdk-flutter

2.4.0

03 Sep 18:08
d87d2a4

Choose a tag to compare

Added

  • Support for on-device geofencing via new HyperTrack.orders["my_order"].isInsideGeofence property
    // check worker presence synchronously
    var activeOrders = await HyperTrack.orders;
    Order? currentOrder = activeOrders["current_order"];
    if (currentOrder != null) {
      handlePresence(currentOrder.isInsideGeofence);
    } else {
      print("'current_order' not found");
    }

    // or subscribe to the changes in orders to get the status updates
    HyperTrack.ordersSubscription.listen((orders) {
      Order? currentOrder = orders["current_order"];
      if (currentOrder != null) {
        handlePresence(currentOrder.isInsideGeofence);
      } else {
        print("'current_order' not found");
      }
    });

    // handle worker presence inside the order destination geofence
    void handlePresence(Result<bool, LocationError> isInsideGeofence) {
      switch (isInsideGeofence.runtimeType) {
        case Success:
          if ((isInsideGeofence as Success).value) {
            // allow worker to clock in for the shift
          } else {
            // "to clock in you must be at order destination"
          }
          break;
        case Failure:
          // resolve errors to check for presence
          break;
      }
    }

Changed

  • Updated HyperTrack SDK iOS to 5.7.0
  • Updated HyperTrack SDK Android
    to 7.7.0

2.3.0

25 Jun 15:16
3bea371

Choose a tag to compare

Added

  • New setWorkerHandle and getWorkerHandle can be used to identify workers
    • We observed our customers identify worker devices via HyperTrack.metadata, so we decided to make it a first class citizen in our API.
    • If you previously used metadata to identify workers, we suggest using workerHandle for this purpose instead.

Changed

  • Updated HyperTrack SDK iOS to 5.6.0
  • Updated HyperTrack SDK Android to 7.6.0

2.2.3

27 May 10:58
f56c107

Choose a tag to compare

Changed

  • Updated HyperTrack SDK Android to 7.5.5

2.2.2

24 May 10:58
0d74fea

Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.5.4
  • Updated HyperTrack SDK Android to 7.5.4

2.2.1

03 May 17:09
71c0d1b

Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.5.3

2.2.0

24 Apr 16:27
3354341

Choose a tag to compare

Changed

  • New addGeotag and addGeotagWithExpectedLocation methods signature that have orderHandle and orderStatus parameters. You can use this API when users need to clock in/out of work in your app to honor their work time (see Clock in/out Tagging guide for more info)
  • Updated HyperTrack SDK iOS to 5.5.2
  • Updated HyperTrack SDK Android to 7.5.3

2.1.2

27 Feb 15:06
9e54c49

Choose a tag to compare

Changed

  • Updated HyperTrack SDK Android to 7.4.3

2.1.1

27 Feb 15:05
a873665

Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.4.1
  • Updated HyperTrack SDK Android to 7.4.2

2.1.0

31 Jan 14:26
abcc474

Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.4.0
  • Updated HyperTrack SDK Android to 7.4.0

2.0.4

07 Dec 13:29
59fad8d

Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.0.8
  • Updated HyperTrack SDK Android to 7.0.10
  • minSdkVersion from 23 to 19 for Android