Flutter
Device Connect Flutter SDK is used to collect anonymised non-PII data from the devices of the users after taking explicit user consent.
Requirements#
Device Connect Flutter SDK works on Android 5.0+ (API level 21+), on Java 8+ and AndroidX. In addition to the changes, enable desugaring to support older versions.
Add Plugin#
Specify the following in local.properties file:
Add plugin dependency in pubspec.yaml file:
NOTE
Following will be shared by FinBox team at the time of integration:
ACCESS_KEYSECRET_KEYDC_SDK_VERSIONCOMMON_SDK_VERSIONCOMMON_FLAVORLOGGER_SDK_VERSIONCLIENT_API_KEY
Create User#
Call FinBoxDcPlugin.createUser method to create the user. It takes Client Api Key and Customer Id as the arguments.
IMPORTANT
Please make sure CUSTOMER_ID is not more than 64 characters and is alphanumeric (with no special characters). Also it should never null or a blank string "".
As success result, you will get an 'accessToken'