Integration
The Flutter plugin for DriveKit SDK is open source and available on GitHub: https://github.com/DriveQuantPublic/flutter-drivekit
If you want to get a sample code to install DriveKit in your Flutter application, you can try our demo application.
If you want to integrate the SDK into your application, please follow the exhaustive documentation available on the main README on GitHub.
The main steps to install the DriveKit SDK in your application are described below.
Step 1: Install the Core module
How to configure mandatory information like the API key, user identifier, etc.
Manage DriveKit events, e.g. when the user is connected, logged out, has change permission state, etc.
Step 2: Install the Trip Analysis module
The module is required to set how you want trips to be recorded (autostart configuration, custom timeout, …).
Step 3: Install the Driver Data module
Integrate Integrate the Driver Data module to manage user's trips (list, details, deletion) and ensures the synchronisation of driver data.
Step 4: Test your implementation with Trip Simulator module
To verify the DriveKit Trip Analysis component integration into your app, it is recommended to perform tests in real conditions. Before carrying out driving tests, it may be useful to validate the implementation of the SDK in your application thanks to the Trip Simulator module.
Step 5: Notify the user about the trip analysis
To inform the user that the trip has been analyzed, finished or cancelled, the DriveKit libraries for Flutter offers listeners so it becomes easy to build notifications on both mobile platforms.
Read our documentation carefully to manage notifications to manage notification even when the app is not on background!
Last updated