Skip to content

Releases: hypertrack/sdk-ionic-capacitor

3.6.0

06 Sep 15:41
3d97f62
Compare
Choose a tag to compare

Added

  • Support for Motion & Activity detection
    • If your app asks for the Motion & Activity permission (for iOS) or the Activity Recognition permission (for Android) and the user grants it, you will have better activity detection in polylines

Changed

  • Updated HyperTrack SDK iOS to 5.8.0
  • Updated HyperTrack SDK Android to 7.8.0

3.5.1

28 Aug 16:34
511ae0f
Compare
Choose a tag to compare

Fixed

  • Serialization bug for Order.isInsideGeofence success case on iOS

3.5.0

21 Aug 23:41
fc8f25a
Compare
Choose a tag to compare

Added

  • Support for on-device geofencing via new HyperTrack.orders.get("my_order_handle").isInsideGeofence property

Example use for worker clock in:

// check worker presence synchronously
let activeOrders = await HyperTrack.getOrders()
let currentOrder = activeOrders.get("current_order")
if (currentOrder !== undefined) { handlePresence(currentOrder) }
else { console.log("'current_order' not found") }

// or subscribe to the changes in orders to get the status updates
HyperTrack.subscribeToOrders(orders => {
  let let currentOrder = activeOrders.get("current_order")
  if (currentOrder !== undefined) { handlePresence(currentOrder) }
  else { console.log("'current_order' not found") }
})

// handle worker presence inside the order destination geofence
function handlePresence(isInsideGeofence: Result<boolean, LocationError>) {
  switch (isInsideGeofence.type) {
    case 'success':
      if (isInsideGeofence.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

3.4.0

19 Jun 17:15
ee710d5
Compare
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

3.3.1

24 May 16:38
7b35022
Compare
Choose a tag to compare

Changed

  • Updated HyperTrack SDK Android to 7.5.5

3.3.0

13 May 19:00
cf79a5f
Compare
Choose a tag to compare

Added

  • Now the plugin takes into account project's kotlin_version to align Kotlin versions.

Changed

  • Default Kotlin version is updated to 1.9.10
  • Updated HyperTrack SDK iOS to 5.5.4
  • Updated HyperTrack SDK Android to 7.5.4

Removed

  • @capacitor/core item in peerDependencies

3.2.2

02 May 21:41
e1f3e56
Compare
Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.5.3

3.2.1

23 Apr 18:32
9044d99
Compare
Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.5.2
  • Updated HyperTrack SDK Android to 7.5.3

3.2.0

19 Apr 15:43
05ae2ce
Compare
Choose a tag to compare

Added

  • New addGeotag method 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)

Fixed

  • Added kotlinOptions.jvmTarget to fix the build error when updating to Gradle 8 and setting compileOptions.targetCompatibility to 17

Changed

  • Updated HyperTrack SDK iOS to 5.5.1
  • Updated HyperTrack SDK Android to 7.5.2

3.1.3

26 Feb 19:58
5fd18d6
Compare
Choose a tag to compare

Changed

  • Updated HyperTrack SDK Android to 7.4.3