Skip to content

5.7.0

Compare
Choose a tag to compare
@ferologics ferologics released this 21 Aug 18:41
· 7 commits to master since this release

Added

Example use for worker clock in:

func handlePresence(
  _ isInsideResult: Result<Bool, HyperTrackLocationError>
) {
  switch isInsideResult {
  case .success(let isInside):
    if isInside {
      // allow worker to clock in for the shift
    } else {
      // "to clock in you must be at order destination"
    }
  case .failure(let error):
    // resolve any tracking errors to obtain geofence presence
}

// check if a worker is inside an order's geofence
handlePresence(HyperTrack.orders["my_order"].isInsideGeofence)

// or, listen to order.isInsideGeofence changes
HyperTrack.subscribeToOrders { orders in
  handlePresence(orders["my_order"].isInsideGeofence)
}
  • Added partial support for Motion Activity
    • Our SDK doesn’t ask for motion permission
    • For SDK 5.7.0 and above, NSMotionUsageDescription in your Info.plist is required (even if permission is not asked).

Changed

  • Changed the OrderStatus enum to a struct to support future cases without introducing API breaking changes