Skip to content

Migration Guide 3.6

Migration SDK from Old Versions

This section provides a detailed description of API changes introduced or removed in recent SDK upgrades.
We strongly recommend reading this documentation when upgrading the SDK version to understand the differences and update your API calls accordingly.

Migration to Version 3.6.0

Bluetooth Notification Flow Analytics Events

DriveMotion iOS SDK now provides Bluetooth notification flow analytics events to assist with troubleshooting Bluetooth connection issues.

A new optional method onPeripheralsCollected has been added to TNDriveMotionMonitorDelegate:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
@objc public protocol TNDriveMotionMonitorDelegate {   

    // ... existing methods

    /**
     * Called when peripheral devices are collected
     * @param event PeripheralEvent object containing the name of the detected peripheral devices
     */
    @objc optional func onPeripheralsCollected(_ event: PeripheralEvent)
}

Usage:

Implement the onPeripheralsCollected method in your delegate to receive notifications when Bluetooth peripheral devices are detected:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
extension MyViewController: TNDriveMotionMonitorDelegate {

    func onPeripheralsCollected(_ event: PeripheralEvent) {
        // Handle peripheral collection event
        let peripheralNames = event.peripheralNames
        // Process peripheral information for analytics or troubleshooting
    }

    // ... other delegate methods
}

Optional Method

This is an optional delegate method. You only need to implement it if you want to receive peripheral collection events for analytics or troubleshooting purposes.

Architecture Support

32-bit Architecture

The map-matching feature does not support 32-bit architectures. Ensure your app targets 64-bit devices if you plan to use map-matching functionality.