Giter VIP home page Giter VIP logo

Comments (6)

yuecelm avatar yuecelm commented on May 29, 2024 1

please upvote in microsoft/appcenter-sdk-android#938 if you want to support flutter in appcenter and to speed up solving this issue

from flutter_plugin_appcenter.

ukrx-xamd avatar ukrx-xamd commented on May 29, 2024

This is working - somewhat - you can intercept Flutter crashes by running your main app in a Zoned sandbox - then you can provide an onError callback whereby you would simply log using AppCenterAnalytics - i.e log the error and stackTrace via a trackEvent call.

from flutter_plugin_appcenter.

yuecelm avatar yuecelm commented on May 29, 2024

is it possible to provide a method like captureException?

FlutterError.onError = (FlutterErrorDetails details) {
  Zone.current.handleUncaughtError(details.exception, details.stack);
};
 
runZoned<Future<void>>(() async {
  // start your app
}, onError: (error, stackTrace) {
  AppCenterCrashes.captureException(
    exception: error,
    stackTrace: stackTrace,
  );
});

misusing AppCenterAnalytics for crash reporting looks like a hack for me and is currently a reason why I cannot switch from sentry to appcenter

from flutter_plugin_appcenter.

ukrx-xamd avatar ukrx-xamd commented on May 29, 2024

I totally agree. Hence the reason why I am also sticking with Sentry running in a zoned environment

from flutter_plugin_appcenter.

yuecelm avatar yuecelm commented on May 29, 2024

it seems to be a limitation of the AppCenter SDK:

// TODO the backend does not support that service yet, will be public method later.
static void trackException(@NonNull Throwable throwable)

from flutter_plugin_appcenter.

yuecelm avatar yuecelm commented on May 29, 2024

microsoft/appcenter-sdk-android#933

from flutter_plugin_appcenter.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.