Prerequisites
- Flutter SDK and Dart toolchain on your PATH
- OnePub access (credentials provided by Moca)
- Android:
compileSdk34+,minSdk26+ (see Android setup) - iOS: platform 14.0+ in
Podfile(see iOS setup)
Production mobile apps should use the production AIR pages and domains, including
account.air3.com for passkey setup. Moca Chain mainnet is live; see Production mainnet access.OnePub CLI
Add the dependency
Option A —pubspec.yaml
Import
Initialize
Create anAirService instance and call initialize:
partnerId from us. The navigatorKey is used to overlay the dialogs that specific user flows need. During development, use Environment.sandbox and enable logging.
Next steps
- Android setup — asset statements, manifest, network security
- iOS setup — associated domains,
Podfile - Google Sign-In if you use Google login