Installation Guide

In this section, you will find all the information needed to install the Unico IDCloud platform SDK in your Flutter applications


Development Environment Prerequisites


Your development environment must meet the following prerequisites:

  • Have the Flutter Developer SDK installed.

The capture component provided through the Flutter SDK supports the following versions or higher for the technologies:

  • Android: 5.0 (API 21);

  • iOS: 11.

Compatible Devices


This SDK does not work on emulators, only on physical devices.

iOS Devices::

  • iOS: It is compatible with almost all devices running iOS 11.

You can check the list of compatible devices on Apple’s official support channels.

Android Devices:

  • It is compatible with the vast majority of devices running Android 5.0 (API level 21) or higher.

The following table lists the devices tested in the lab, along with the availability of vendor/manufacturer extensions. Some extensions listed may be subject to specific manufacturer APIs or SKUs. Click below to see the tested devices:

Installing the Flutter SDK


To implement the Flutter SDK from the Unico IDCloud platform into your Flutter app, follow the step-by-step guide listed below:

1

Using the Flutter CLI

To add the Unico Check Flutter SDK to your project, run the following command using the Flutter CLI:

$ flutter pub add unico_check

This command adds the following line to the pubspec.yaml file of your package:

dependencies:
  unico_check: ^2.0.2

Manually fetching packages: The flutter pub add unico_check command implicitly runs flutter pub get. If the package is not installed correctly, make sure that unico_check is listed in your pubspec.yaml file and run flutter pub get manually.

2

Permissions for Camera and Internet Usage

To use the camera opening method in your project, you need to add the permissions before compiling your application. Here’s an example:

<key>NSCameraUsageDescription</key>
<string>Camera usage description</string>

3

Including the Dependency

After configuring the Android SDK, simply import it into your project. To do this, import the package in your Dart code:

main.dart
import 'package:unico_check/unico_check.dart';

4

Obtaining the Credentials

  • Contact the CSs and/or Onboarding team.

  • Request the SDK Key by providing the identifiers of your applications: Bundle Identifier for iOS, PackageID for Android, and Host for WEB.

  • The identifiers of your applications will be linked to the SDK Key by the Unico team.

  • You will receive your SDK Key to implement the AcessoBioConfigDataSource.

5

Embedding the Credentials in Your Project

To embed the SDK Key into the project, implement the AcessoBioConfigDataSource protocol in your class:

  final _configIos = UnicoConfig(
      getBundleIdentifier: "Your BundleIdentifier Ios",
      getHostKey: "Your HostKey Ios"); 

  final _configAndroid = UnicoConfig(
      getBundleIdentifier: "Your BundleIdentifier Android",
      getHostKey: "Your HostKey Android");

  void initUnicoCamera() {
    _unicoCheck = new UnicoCheck(
        listener: this,
        unicoConfigIos: _configIos,
        unicoConfigAndroid: _configAndroid);
  }
Deprecated Method - Dart
  final _configIos = UnicoConfig(
      getProjectNumber: "Your ProjectNumber Ios",
      getProjectId: "Your ProjectId Ios",
      getMobileSdkAppId: "Your MobileSdkAppId Ios",
      getBundleIdentifier: "Your BundleIdentifier Ios",
      getHostInfo: "Your HostInfo Ios",
      getHostKey: "Your HostKey Ios");

  final _configAndroid = UnicoConfig(
      getProjectNumber: "Your ProjectNumber Android",
      getProjectId: "Your ProjectId Android",
      getMobileSdkAppId: "Your MobileSdkAppId Android",
      getBundleIdentifier: "Your BundleIdentifier Android",
      getHostInfo: "Your HostInfo Android",
      getHostKey: "Your HostKey Android");

@override
  void initState() {
    super.initState();
    initUnicoCamera();
    configUnicoCamera();
  }

  void initUnicoCamera() {
    _unicoCheck = new UnicoCheck(
        listener: this,
        unicoConfigIos: _configIos,
        unicoConfigAndroid: _configAndroid);
  }

Done. After completing the SDK installation, proceed to the implementation by reading the following Usage and Integration Guide.


Still need help?

Didn't find something or still need help? If you're already a client or partner, you can reach out through our Help Center.

Last updated

Was this helpful?