Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ferologics committed Aug 21, 2024
1 parent 045aa78 commit e693468
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,44 @@
# Changelog

## [7.7.0] - 2024-08-21

### Added

- Support for on-device geofencing via new `HyperTrack.orders["my_order"].isInsideGeofence` property
- To learn more about how to best use this new feature see our guide here: https://developer.hypertrack.com/docs/clock-in-out-tagging#verify-shift-presence-before-starting-work

Example use for worker clock in:

```
fun handlePresence(isInsideResult: Result<Boolean, HyperTrackLocationError>) {
when (isInsideResult) {
is Result.Success -> {
val isInside = isInsideResult.getOrNull() ?: false
if (isInside) {
// allow worker to clock in for the shift
} else {
// "to clock in you must be at order destination"
}
}
is Result.Failure -> {
// 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 ->
handlePresence(orders["my_order"]?.isInsideGeofence())
}
```

## [7.6.0] - 2024-06-05

### Added

- 🆕 New `HyperTrack.workerHandle` property 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. 👈
Expand Down Expand Up @@ -867,3 +904,4 @@ We are excited to announce the release of HyperTrack Android SDK 7.0.0, a major
[7.5.4]: https://github.com/hypertrack/sdk-android/releases/tag/7.5.4
[7.5.5]: https://github.com/hypertrack/sdk-android/releases/tag/7.5.5
[7.6.0]: https://github.com/hypertrack/sdk-android/releases/tag/7.6.0
[7.7.0]: https://github.com/hypertrack/sdk-android/releases/tag/7.7.0

0 comments on commit e693468

Please sign in to comment.