Installation
Supported Platforms
The library is available for the following Flutter 3.3.0+ platforms:
- Android 5.0 (API 21) and newer
- iOS 13.4 and newer
How To Install
1. Prerequisites
- Flutter SDK installed (Get Started)
- A working Flutter project (
flutter create my_app
if starting fresh)
2. Add Dependency
Open pubspec.yaml
and add:
dependencies:
flutter_powerauth_mobile_sdk_plugin: ^1.0.0 # Check pub.dev for latest version
Then run:
flutter pub get
3. Configure Native Platforms
Android
In android/app/build.gradle
, make sure to set the minimum SDK version:
minSdkVersion 21
Also, make sure to enable Java 11:
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
iOS
In ios/Podfile
, ensure the platform version is at least 13.4:
platform :ios, '13.4'
Then install pods:
cd ios
pod install
cd ..
4. Initialize PowerAuth in Dart
In your main Dart file or wherever needed:
import 'package:flutter_powerauth_mobile_sdk_plugin/flutter_powerauth_mobile_sdk_plugin.dart';
final powerAuth = PowerAuth("my-instance-id);
Read Next
Last updated on May 02, 2025 (14:06)
Edit on Github
Send Feedback