appwin_core library

Foundation of the Appwin SDKs for Flutter.

Appwin is a toolkit for mobile studios: a customer support messenger, an in-app community feed, push notifications, analytics and attribution, running natively inside your app and steered from a web dashboard. The studio changes a colour, a welcome message or the FAQ there, and the app picks it up on the next open, with no release to ship.

This package is not a product of its own. It holds what the products share: the device identity, the session, the network client, the event stream and consent. You depend on it to call AppwinCore.configure once, then add the product packages you need:

Package What it gives you
appwin_support Messenger, conversations and FAQ
appwin_community In-app feed, comments, member profiles
appwin_notifications Push registration and in-app messages
appwin_analytics Events, screens, crashes and session replay
appwin_attribution Install attribution and advertising consent

Each of those already depends on this one, so a single product needs a single line in your pubspec.yaml.

import 'package:appwin_core/appwin_core.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await AppwinCore.instance.configure(appId: 'your-app-id');
  runApp(const MyApp());
}

The App ID comes from your dashboard, under Settings then SDK. See the example/ directory for a runnable integration.

Classes

AppwinCore
Shared foundation for every Appwin SDK.
AppwinInitResult
What a product's initialize() answers.
AppwinPause
The organisation behind this app has paused its subscription.
AppwinPush
Routes Appwin pushes to the product that owns them (a Support reply opens that conversation, a campaign its link).
AppwinUserAttributes
What your app knows about its user, sent to Appwin by AppwinCore.instance.identify and AppwinCore.instance.updateUser.

Enums

AppwinConsentPurpose
What an event stream may be used for. Each purpose has its own AppwinConsentState.
AppwinConsentState
What a user answered for a consent purpose.
AppwinInitStatus
Coarse outcome of a product's initialize().
AppwinProduct
An Appwin product, as the server names it in its availability verdict.
AppwinUnavailableReason
Why a product is closed to this app.