Skip to main content

Installation

This guide will help you install and set up the Azakaw Flutter plugin in your project.

Prerequisites​

  • Flutter SDK: 3.24.0 or higher
  • Dart SDK: 3.5.0 or higher
  • iOS: 14.3 or higher
  • Android: API 21 (Android 5.0) or higher

Installation Steps​

The package is published on pub.dev as azakaw_kyc_flutter.

  1. Add the dependency to your pubspec.yaml:
dependencies:
azakaw_kyc_flutter: ^1.0.0
  1. Install it:
flutter pub get
  1. Import it:
import 'package:azakaw_kyc_flutter/azakaw_kyc_flutter.dart';

Platform setup​

Android​

No manifest changes are required. The plugin declares INTERNET and CAMERA in its own manifest, and these merge into your app automatically. It also declares android.hardware.camera as not required, so your Play Store device filtering is unaffected.

iOS​

Add a camera usage description to ios/Runner/Info.plist:

<key>NSCameraUsageDescription</key>
<string>Camera access is required for identity verification</string>

Then enable the camera permission in ios/Podfile. permission_handler compiles every permission out on iOS by default, so without this the camera request is always reported as denied — however correct your NSCameraUsageDescription is. Add the GCC_PREPROCESSOR_DEFINITIONS lines to the post_install block Flutter generated:

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)

target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
]
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'PERMISSION_CAMERA=1'
end
end
end

Run pod install (or flutter run) again after changing the Podfile.

The microphone is never requested — the onboarding portal captures video only.

warning

iOS 14.3 is a hard floor. WKWebView only gained getUserMedia in 14.3, so document and liveness capture cannot work below it. On iOS 15+ the SDK handles the camera permission prompt itself; on 14.3–14.x WKWebView prompts on its own using your NSCameraUsageDescription.

Next steps​