Comments (6)
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.
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.
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.
I totally agree. Hence the reason why I am also sticking with Sentry running in a zoned environment
from flutter_plugin_appcenter.
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.
microsoft/appcenter-sdk-android#933
from flutter_plugin_appcenter.
Related Issues (17)
- Example App occurred Unhandled exception: type 'Future<dynamic>' is not a subtype of type 'Future<String>' HOT 1
- Crash in Android not working HOT 1
- Undefined symbols for architecture x86_64 HOT 1
- all import statements fail HOT 1
- 'AppCenter/AppCenter.h' file not found HOT 15
- Upgrade android SDK to latest 2.4.0 HOT 1
- flutter build apk fails after flutter upgrade HOT 7
- The 'Pods-Runner' target has transitive dependencies that include statically linked binaries HOT 5
- I want to be a mantainer HOT 2
- I want to become a maintainer HOT 3
- AppSecretDenied - wrong format ? HOT 1
- Track Flutter errors (non crashes)
- Update SDK to the flutter 2.5
- The 'Pods-Runner' target has transitive dependencies HOT 6
- Dart SDK 2 version? HOT 2
- PushNotification ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_plugin_appcenter.