Skip to main content

Usage

Import Amani

import 'package:amani_flutter_sdk/amanisdk.dart';
import 'package:amani_flutter_sdk/sdkresult.dart'; // For SdkResult class.

Calling startAmaniSDKWithToken

final _amanisdkPlugin = Amanisdk();
async {
SdkResult result = await _amanisdkPlugin.startAmaniSDKWithToken(
server: "server_url supplied from us.",
token:
"profile token from the web server",
id: "id number");
print(result);
}

In the result, there will be some general variables to check both error states, if verification is completed. If the user returns from the SDK screen, rules will be filled.

Acquire profile token

If you dont know hot to get profile token you need to read acquire profile token documentation.