Skip to content

Migration Guide 2.1

Migration SDK from old versions

This section provides a comprehensive description of the API changes that occur during the upgrade. It is highly recommended to review this documentation when upgrading the SDK version in order to understand the differences in the API and make the necessary updates to your API calls according to the version disparities.

Migration to version 2.1.0

New Cocoapods-art Sources

Now we use new source telenav-cocoapods-releases instead of telenav-cocoapods. need to update your podfile as follows:

1
2
3
plugin 'cocoapods-art', :sources => [
    'telenav-cocoapods-releases'
]

Support New Trip Rating

Now a transition in object representation occurred with the replacement of the TripRating object by the Rating object. The TripRating object, previously employed to manage ratings associated with trips, has been supplanted by the Rating object, which now assumes the responsibility for handling and representing trip-related ratings.

In the AggregatedSafetyScore object:

  • Add new field tripsRating to describes the trip rating under current safety algorithm.

Support Cloud Safety Score

Now you can retrieve server-side safety score by using ConnectionMode Cloud.

Note

On cloud mode, ensure connection to an available network.

1
2
3
4
    let builder = driveMotionAnalyticsClient.withConnectionMode(mode:#connectionMode#).aggregatedSafetyScoreRequest()
    let request = builder.startDate(#startDate#)
                        .endDate(#endDate#)
    ...
1
2
3
4
    TNAggregatedSafetyScoreRequestBuilder *builder = [[driveMotionAnalyticsClient withConnectionModeWithMode:#connectionMode#] aggregatedSafetyScoreRequest];
    [builder startDate:#startDate#];
    [builder endDate:#endDate#];
    ...

New Field For Event Details

Road information added for safety event details, Now the Loction object inside the Safty Event has a new label field, which you can now retrieve.