1.24.1 -> 1.25.0

Trip Service changes

  • geometry is removed from Trip.Expansion. Please use points instead.

  • vehicles expansion is renamed to vehicle . Check here for more info on newly added expansions.

tripService.fetch(expansions: [.points, .vehicle]) { _ in }
  • TripService.fetch and TripService.fetchAll accepts one more parameter as roles to filter roles while fetching trips

tripService.fetch(expansions: [.points, .vehicle], roles: [.driver]) { _ in }

Adding Vehicle ID to trip files

let device = IMSDevice(deviceId: "mock-id", deviceName: "mock-device")
IMSDeviceManager.associateDevice(device, toVehichleId: "50")

AppMisuse API Changes:

  • Manual calls to enableAppMisuse() and disableAppMisuse() are no longer needed. Now SDKConfig manages the AppMisuse feature automatically based on the server configuration

BGTask Scheduler Registration for AppMisuse:

  • To enable AppMisuse and other SDK background functionalities, the host app must register the following identifier in its Info.plist under BGTaskSchedulerPermittedIdentifiers:

BGTask Identifier:

<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
    <string>com.ims.IMSBGTaskScheduler</string>
</array>
  • The host app must call the below API and register the task from application(_:didFinishLaunchingWithOptions:) app life cycle.

IMSBGTaskManager.shared.registerTask()
  • For more info, visit Link

Last updated