flutter_trusted_device_v2
This is the Official flutter package for Fazpass Trusted Device V2.
If you want to use native sdk for android, you can find it here: https://github.com/fazpass-sdk/android-trusted-device-v2
For ios counterpart, you can find it here: https://github.com/fazpass-sdk/ios-trusted-device-v2
Visit official website for more information about the product and see documentation at online documentation for more technical details.
Minimum OS
Android 22, IOS 13.0
Getting Started
Before using our product, make sure to contact us first to get keypair of public key and private key. after you have each of them, put the public key into the assets folder.
Android
- Open android folder, then go to app/src/main/assets/ (if assets folder doesn't exist, create a new one)
- Put the public key in this folder
Ios
- Open your Ios project/workspace in Xcode
- Add new Data Set into your assets
- Reference it into your public key
- Name the asset
This package main purpose is to generate meta which you can use to communicate with Fazpass rest API. But before calling generate meta method, you have to initialize it first by calling this method:
Fazpass.instance.init("YOUR_PUBLIC_KEY_NAME");
Usage
String? meta;
try {
meta = await Fazpass.instance.generateMeta();
} catch (e) {
// handle error here
}