autoussdflutter 2.0.2
autoussdflutter: ^2.0.2 copied to clipboard
Flutter plugin for AutoUssd which allows you to build Flutter applications on top of USSD services
AutoUssdFlutter #
AutoUssd is a powerful USSD automation SDK for Android which allows you to build Android applications on top of USSD services. Find out more on our website.
AutoUssdFlutter is the Flutter plugin for AutoUssd.
Requirements #
- Flutter 2.5.3 or higher
- Your app's android component must must target a
minSdkVersion
of 23 or higher
Installation #
flutter pub add autoussdflutter
Setup #
AutoUssdFlutter uses the new AndroidX Activity Result APIs which means your MainActivity
must inherit from a ComponentActivity or a sub-class of it. Follow the steps below to modify your MainActivity
accordingly:
-
Open your
MainActivity.kt
in the Android module of your Flutter app. If your package name iscom.example.product
, yourMainActivity.kt
will be located at/android/app/src/kotlin/com/example/product/MainActivity.kt
-
Your file should look like the sample below:
package com.example.product import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { }
-
Change your
MainActivity.kt
to look like thispackage com.example.product import io.flutter.embedding.android.FlutterFragmentActivity class MainActivity: FlutterFragmentActivity() { }
Awesome. Now you are ready to start using the SDK.
Usage #
Click here to visit our beginner-friendly guide to get started with AutoUssd.