uaepass 0.0.4
uaepass: ^0.0.4 copied to clipboard
UAE PASS service allows using a mobile device as a secure form of identification. UAE PASS automates and simplifies managing digital identity in mobile devices for users.
uaepass #

Installation #
In your pubspec.yaml file within your Flutter Project:
dependencies:
uaepass: <latest_version>
iOS #
Add the below to info.plist
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>uaepass</string>
<key>CFBundleURLSchemes</key>
<array>
<string>{custom App Scheme}</string>
</array>
</dict>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>uaepass</string> // for Production
<string>uaepassstg</string> // for Staging
</array>
Update AppDelegate.swift as per below
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
private var methodChannel: FlutterMethodChannel?
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
let controller = window.rootViewController as! FlutterViewController
methodChannel = FlutterMethodChannel(name: "poc.uaepass/channel", binaryMessenger: controller.binaryMessenger)
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
methodChannel?.invokeMethod("didRecieveTranscript", arguments: url.absoluteString)
return true
}
}
Android #
Coming Soon
Use it #
import 'package:uaepass/uaepass.dart';
UaepassLoginButton();
Example #
import 'package:flutter/material.dart';
import 'package:uaepass/uaepass.dart';
void main() {
Uaepass.init(
env: UaePassEnv.stg,
appScheme: '{custom App Scheme}',
clientId: 'sandbox_stage',
clientSecret: 'sandbox_stage',
);
runApp(
const MaterialApp(
home: Material(
child: Center(
child: UaepassLoginButton(),
),
),
),
);
}