appboxo_sdk 0.1.17

Flutter Android iOS

A Flutter plugin to integrate the Appboxo for iOS and Android.

AppboxoSDK for Flutter #

A Flutter plugin to integrate the Appboxo for iOS and Android.

Usage #

import 'package:appboxo_sdk/appboxo_sdk.dart';

AppboxoSdk.setConfig("[client_id]"); //set your Appboxo client_id

AppboxoSdk.setConfig("[client_id]", multitaskMode: false);
//'multitaskMode' works only on Android. By default 'true', each miniapp appears as a task in the Recents screen.

AppboxoSdk.openMiniApp("[miniapp_id]", "[auth_payload]"); //launch miniapp by id with auth payload

AppboxoSdk.hideAllMiniApps(); //use it to closing all miniapp screens

AppboxoSdk.logout(); //On logout from your app, call it to clear all miniapps data.
AppboxoSdk.openMiniApp("[miniapp_id]", "[auth_payload]", "[data]");

Use it when you need to pass data to miniapp.

Custom events #

Handle events from miniapp and send to miniapp.

AppboxoSdk.customEvents().listen((CustomEvent event) {
      if (event.appId == 'app123456') {
        event.payload = {"foo": "bar"};
        AppboxoSdk.sendEvent(event);
      }
    });

Android #

Requires AndroidX Include support in android/gradle.properties

android.useAndroidX=true
android.enableJetifier=true
1
likes
90
pub points
47%
popularity

A Flutter plugin to integrate the Appboxo for iOS and Android.

Homepage

Documentation

API reference

Uploader

signup@appboxo.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on appboxo_sdk