1.24.1 -> 1.25.0
Trip Service changes
geometryis removed fromTrip.Expansion. Please usepointsinstead.vehiclesexpansion is renamed tovehicle. Check here for more info on newly added expansions.
tripService.fetch(expansions: [.points, .vehicle]) { _ in }TripService.fetchandTripService.fetchAllaccepts one more parameter asrolesto 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()anddisableAppMisuse()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