flutter_appcenter_bundle 1.0.0-dev+4 flutter_appcenter_bundle: ^1.0.0-dev+4 copied to clipboard
This plugin currently bundles appcenter analytics, crashes and distribute. To learn more about AppCenter, go to https://aka.ms/appcenterdocs
AppCenter Plugin for flutter #
#
This plugin currently bundles appcenter analytics, crashes and distribute.
Getting Started #
To get started, go to AppCenter and register your apps.
For detailed AppCenter API reference, go to https://aka.ms/appcenterdocs
Usage #
Basic usage #
import 'package:flutter_appcenter_bundle/flutter_appcenter_bundle.dart';
await AppCenter.startAsync(
appSecretAndroid: 'xxxx',
appSecretIOS: 'xxxx',
enableAnalytics: true, // Defaults to true
enableCrashes: true, // Defaults to true
enableDistribute: true, // Defaults to false
);
AppCenter.trackEvent('my event');
Turn feature on / off at runtime #
await AppCenter.configureAnalyticsAsync(enabled: true);
await AppCenter.configureCrashesAsync(enabled: true);
await AppCenter.configureDistributeAsync(enabled: true);
await AppCenter.configureDistributeDebugAsync(enabled: true); // Android Only