flutter_uae_pass
A UAE Pass plugin for Flutter supporting iOS, Android, and Web platforms. This is an unofficial version.
A UAE Pass plugin for Flutter for iOS and Android only. This is an unofficial version.
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}{"sdk":"flutter"}^3.0.1English project snapshot. Visit GitHub for the latest content.
Un-official UAE Pass Flutter plugin for iOS, Android, and Web.
Demo
| Android | iOS | Web |
|---|---|---|
| Android | iOS | Web |
| Platform | Supported | Implementation |
|---|---|---|
| iOS | ✅ | WKWebView with full screen modal |
| Android | ✅ | Custom WebView Activity |
| Web | ✅ | OAuth2 popup authentication |
flutter_uae_pass: ^1.0.6
flutter pub get
import 'package:flutter_uae_pass/flutter_uae_pass.dart';
final _uaePassPlugin = UaePass();
await _uaePassPlugin.setUpSandbox();
await _uaePassPlugin.setUpEnvironment(
clientId: "<clientId>",
clientSecret: "<clientSecret>",
urlScheme: "myappscheme",
redirectUri: "<redirectUri>",
isProduction: true,
language : "en",
);
String? authCode = await _uaePassPlugin.signIn();
String? accessToken = await _uaePassPlugin.getAccessToken(authCode);
you can fetch this information from profile
ProfileData? profileData = await _uaePassPlugin.getProfile(accessToken);
<key>LSApplicationQueriesSchemes</key>
<array>
<string>uaepass</string>
<string>uaepassqa</string>
<string>uaepassdev</string>
<string>uaepassstg</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>myappscheme</string>
<key>CFBundleURLSchemes</key>
<array>
<string>myappscheme</string>
</array>
</dict>
</array>
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTask"
.....
</activity>
<queries>
<package android:name="ae.uaepass.mainapp" />
<package android:name="ae.uaepass.mainapp.qa" />
<package android:name="ae.uaepass.mainapp.stg" />
</queries>
<intent-filter >
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="success"
android:scheme="myappscheme" />
<data
android:host="failure"
android:scheme="myappscheme" />
</intent-filter>
For web applications, no additional configuration is required! The plugin automatically uses a popup-based OAuth2 flow that works in all modern browsers.
Thanks for Faisal for this repo uae_pass_flutter i improve the code and create this package