Documentation

Install and start

Install and start

Two steps: add the SDK and start it once when the app launches, then ask the user for consent. The dashboard shows the app connected as soon as it starts; sessions, events and crash reports follow once the user allows them, and the user is created then (or when they first use a feature such as chat). Everything else is a call away.

In your app, with the SDK

MAUI, Avalonia, Uno, WPF, WinForms, WinUI 3 and console apps, on iOS, Android, Windows, macOS and Linux. .NET 10.

// .NET MAUI (iOS, Android, Mac, Windows), in MauiProgram.cs:
// dotnet add package BeeAppie.Maui (+ BeeAppie.Maui.UI for the ready-made pages)
builder.UseBeeAppie("<app key>")
       .UseBeeAppieUI(o => o.ShowConsentOnFirstLaunch = true);   // 2. the ready-made consent page

// Avalonia or Uno on iOS and Android, or plain .NET for iOS/Android:
// dotnet add package BeeAppie.Mobile
BeeAppieMobile.Start("<app key>");

// Desktop: WPF, WinForms, WinUI 3 (Windows), and Avalonia, Uno or
// console apps (Windows, macOS, Linux): dotnet add package BeeAppie.Desktop
BeeAppieDesktop.Start("<app key>");

// 2. Consent. Avalonia or Uno (BeeAppie.Avalonia.UI / .Uno.UI), once your first view shows:
await BeeAppieUI.ShowConsentIfNeededAsync();   // Uno: ShowConsentIfNeededAsync(this)
// Your own privacy screen instead, or WPF, WinForms, WinUI:
await BeeAppieSdk.Instance.SetConsentAsync(new ConsentDto
{
    EventPermission = true, SessionPermission = true, IssuesPermission = true
});

// Then, everywhere (shared code too): using BeeAppie.Core;
BeeAppieSdk.Instance.TrackEvent("app_opened");

Kotlin or Java, with Jetpack Compose or views. Android 8 (API 26) and later.

// settings.gradle.kts, in dependencyResolutionManagement › repositories:
maven("https://maven.beeappie.com") { content { includeGroup("com.beeappie") } }

// app/build.gradle.kts, in dependencies:
implementation("com.beeappie:beeappie:1.0.0")
implementation("com.beeappie:beeappie-ui:1.0.0") // the screens

// Application.onCreate
BeeAppie.start(this, "<app key>")
BeeAppieUI.askConsentOnFirstLaunch(this) // 2. the ready-made consent screen
// or your own privacy screen: BeeAppie.setConsent(Consent(…)), see Privacy

Swift, with SwiftUI, UIKit or AppKit, on iPhone, iPad and Mac (and iPad apps on the Mac). iOS 15 and macOS 12 and later.

// Swift Package Manager: https://github.com/beeappie/beeappie-ios
import BeeAppie
import BeeAppieUI

@main struct ShopApp: App {
    init() {
        BeeAppieSDK.start(appKey: "<app key>")
        BeeAppieUI.askConsentOnFirstLaunch() // 2. the ready-made consent screen
        // or your own privacy screen: BeeAppieSDK.setConsent(Consent(…)), see Privacy
    }
    …
}

Flutter apps on iOS and Android, on BeeAppie's native SDKs. iOS 15 and Android 8 and later.

// pubspec.yaml: beeappie_flutter: ^0.1.0
import 'package:beeappie_flutter/beeappie_flutter.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  BeeAppie.start('<app key>');
  runApp(const ShopApp());
}

// 2. Consent: the ready-made screen, asked only if the user never answered,
// e.g. in your first screen's initState…
BeeAppie.showConsentIfNeeded();
// …or your own privacy screen:
await BeeAppie.setConsent(Consent.all);

React Native 0.76 and later on iOS and Android, and Expo apps with a development build (not Expo Go).

// npm install @beeappie/react-native && cd ios && pod install
import BeeAppie, { ALL_CONSENT } from '@beeappie/react-native';

BeeAppie.start('<app key>'); // index.js, before AppRegistry

// 2. Consent: the ready-made screen, asked only if the user never answered,
// e.g. in a useEffect of your root component…
BeeAppie.showConsentIfNeeded();
// …or your own privacy screen:
await BeeAppie.setConsent(ALL_CONSENT);

Unity 2021.3 and later, for games on iOS, Android, Windows, macOS and Linux.

// Package Manager → + → Add package from git URL… https://github.com/beeappie/beeappie-unity.git#1.0.1
using BeeAppie.Unity;

// Once, e.g. in your first scene's Awake:
BeeAppieSdk.Start("<app key>");

// 2. Consent, from your own privacy screen once the player agrees:
await BeeAppieSdk.SetConsentAsync(new Consent
{
    EventPermission = true, IssuesPermission = true, SessionPermission = true
});
Or with the HTTP API
POST /v1/users/init
X-App-Key: <app key>

{ "platformCode": "Android", "appVersion": "1.0" }
  • Use your bak_test_… key in debug builds: their data stays under Test. Test keys are for development only: each month 25 new users, 10,000 events, 20 conversations, 200 messages and 100 pushes, and data kept 7 days. Release builds must use the bak_live_… key.
  • Over HTTP, keep the deviceId and deviceSecret it returns and send them on the next launch, or every launch creates a new user.
  • Why consent? BeeAppie records nothing about a person until they allow it. The ready-made screen asks once (Allow / No thanks / Choose) and never again after an answer; the ready-made profile screen lets them change it. More in Privacy.

Ready when you are

BeeAppie opens to new apps soon. Leave your email and we will tell you when you can sign up.

Join the waitlist SDKs and downloads