appboxo_sdk 0.8.1 copy "appboxo_sdk: ^0.8.1" to clipboard
appboxo_sdk: ^0.8.1 copied to clipboard

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

Boxo SDK for Flutter #

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

Usage #

import 'package:appboxo_sdk/boxo.dart';

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

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

Boxo.openMiniapp("[miniapp_id]", data, theme); 
//launch miniapp by id. [data] is map, theme = "light"|"dark"|"system"

Boxo.hideAllMiniapps(); //use it to closing all miniapp screens

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

Use it when you need to pass data to miniapp.

Custom events #

Handle events from miniapp and send to miniapp.

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

Payment events #

Handle payment events from miniapp and send to miniapp.

Boxo.paymentEvents().listen((PaymentEvent event) {
      if (event.appId == 'app12345') {
        event.status = "success";
        Boxo.sendPaymentEvent(event);
      }
    });

Android #

Requires AndroidX Include support in android/gradle.properties

android.useAndroidX=true
android.enableJetifier=true
3
likes
140
points
416
downloads

Publisher

verified publisherappboxo.com

Weekly Downloads

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

Homepage

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on appboxo_sdk