Skip to content

Releases: hypertrack/sdk-react-native

13.8.0

23 Jan 20:07
4e19ced
Compare
Choose a tag to compare

Added

  • New HyperTrack.getAllowMockLocation() and HyperTrack.setAllowMockLocation() methods which can be used to allow mocking location data.
    • Check the Test with mock locations guide for more information.
    • Note: To avoid issues related to race conditions in your code use this API only if modifying the compiled HyperTrackAllowMockLocation AndroidManifest.xml/Info.plist value is insufficient for your needs.
      • Example: if for some reason you aren't able to recompile with HyperTrackAllowMockLocation set to YES/true for your prod app QA mock location tests and need to set up the value in runtime.

Changed

  • Updated HyperTrack SDK iOS to 5.10.0
  • Updated HyperTrack SDK Android to 7.10.0

13.7.1

05 Dec 19:44
371a31f
Compare
Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.9.1
  • Updated HyperTrack SDK Android to 7.9.1

13.7.0

22 Nov 19:00
f57d724
Compare
Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.9.0
  • Updated HyperTrack SDK Android to 7.9.0

13.6.4

18 Nov 15:58
8808a37
Compare
Choose a tag to compare

Fixed

  • Dependency conflict for RCT-Folly library when New Architecture is enabled (removed the fixed folly version)

13.6.3

13 Nov 13:38
aeeec9e
Compare
Choose a tag to compare

Changed

  • Updated HyperTrack SDK iOS to 5.8.1
  • Updated HyperTrack SDK Android to 7.8.4

13.6.2

25 Sep 14:18
b292383
Compare
Choose a tag to compare

Changed

  • Updated HyperTrack SDK Android to 7.8.3

13.6.1

12 Sep 15:21
55e678e
Compare
Choose a tag to compare

Fixed

  • Fixed issue that prevented device registration if the Activity Service plugin wasn't provided

Changed

  • Updated HyperTrack SDK Android to 7.8.2

13.6.0

05 Sep 19:11
2e41325
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
    • Use new Activity service plugin hypertrack-sdk-react-native-plugin-android-activity-service-google (See Plugins)

Changed

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

13.5.1

03 Sep 08:10
cec4d91
Compare
Choose a tag to compare

Fixed

  • Serialization issue with Order.isInsideGeofence

13.5.0

02 Sep 14:07
f0bd800
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