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

outdated

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

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:appboxo_sdk/appboxo_sdk.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    AppboxoSdk.setConfig("[your_appboxo_client_id]");
    AppboxoSdk.customEvents().listen((CustomEvent event) {
      if (event.appId == 'app16973') {
        event.payload = {"complete": "ok"};
        AppboxoSdk.sendEvent(event);
      }
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Appboxo SDK Test'),
        ),
        body: Center(
          child: RaisedButton(
            onPressed: () {
              AppboxoSdk.openMiniAppWithCustomEvents("app16973", "");
            },
            child: Text("Miniapp"),
          ),
        ),
      ),
    );
  }
}
3
likes
0
pub points
43%
popularity

Publisher

verified publisherappboxo.com

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

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on appboxo_sdk