appcenter_sdk_plus 1.0.4 copy "appcenter_sdk_plus: ^1.0.4" to clipboard
appcenter_sdk_plus: ^1.0.4 copied to clipboard

AppCenter SDK written purely in Flutter with support for AppCenter Analytics and AppCenter Crashes.

appcenter_sdk_plus #

pub package

An AppCenter SDK written purely in Flutter to support multiple platforms. It provides a subset of operations for AppCenter Analytics and AppCenter Crashes. More details about the AppCenter APIs can be found on their site.

Features #

This package provides operations for:

  • sending log events to AppCenter Analytics
  • sending crash reports to AppCenter Crashes
  • tracking screen views

Getting started #

To install this package run:

flutter pub add appcenter_sdk_plus

For Flutter applications you need to add the native SQLite library with:

flutter pub add sqlite3_flutter_libs

For other platforms, read sqlite3 docs

Usage #

import 'package:appcenter_sdk_plus/appcenter_sdk_plus.dart';
import 'package:appcenter_sdk_plus/service/appcenter_analytics.dart';
import 'package:appcenter_sdk_plus/service/appcenter_crashes.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await AppCenter.start("8e14e67c-7c91-40ac-8517-c62ece8424a6");
  await AppCenterAnalytics.trackEvent("app_started",
      properties: {"theme": "system"});
  try {
    throw Exception("something");
  } catch (e, s) {
    await AppCenterCrashes.trackError(e, s,
        properties: {"reason": "Test trackError"});
  }
}

Additional information #

If you encounter any problems or you feel the library is missing a feature, please raise a ticket on GitHub and I'll look into it. Pull request are also welcome.

0
likes
140
pub points
52%
popularity

Publisher

verified publisherhasna.ro

AppCenter SDK written purely in Flutter with support for AppCenter Analytics and AppCenter Crashes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

device_info_plus, flutter, http, logging, package_info_plus, path, path_provider, shared_preferences, sqlite3_async, uuid

More

Packages that depend on appcenter_sdk_plus