Skip to content

Migration Guide 2.22

Migration SDK from old versions

This section will provide a detailed description of the API changes during the upgrade. We strongly recommend reading this documentation when upgrading the SDK version to understand the API differences and update your API calls accordingly based on the version disparities.

Migration to version 2.22.x

The SDK introduces a new feature and updates to enhance functionality.

Replace vin with asset

Replaced vin with asset of APIs in below APIs involoved by this change list. You should provide both assetId and assetContext for the new API, assetContext is in a enumation type including CAR type and GLOBAL, the assetId means VIN when assetContext is CAR type, when GLOBAL, the assetId means channel client id.

APIs involoved by this change:
  • Get aggregated safety score
  • Get cumulative safety score
  • Get aggregated score
  • Get cumulative score
  • Get trips
  • Get trip detail
  • Get latest trip detail
  • Replace vehicle peripheral
  • Link vehicle to peripheral

Add TelenavDriveMotionAPI.TNDriveMotionConfigDelegate protocol.

Added a new protocol named TNDriveMotionConfigDelegate, the implementation of which could be provided via TNDriveMotionSettings on DriveMotion SDK initialization. With the new protocol, you can provide a TNTimeRange by implementing method func getReprocessTripTimeRange() -> TelenavDriveMotionAPI.TNTimeRange to DriveMotion SDK for reprocessing past unmatched trips accordingly.