flutter_appcenter_bundle
flutter_appcenter_bundle copied to clipboard
Track Error
Hi, is there a way to track error, not event? I think the method exists in android appcenter crashes SDK. https://docs.microsoft.com/en-us/appcenter/errors/#track-handled-errors-in-app-center https://docs.microsoft.com/en-us/appcenter/sdk/crashes/android#handled-errors
Adding the ability to call 'Track Error' would be really useful for logging purposes - the ability is there in the native SDKs and I was using this in the Xamarin.Forms libraries before making the switch to flutter!
Hi @hanabi1224 ,
There seems to be no direct support for tracking of error in iOS native SDK.
I tried to do the same as the errors were not reported to app centre directly after initialising AppCenter. Also I have a query - does non crashing errors get reported to App Center out of the box by this plugin. Am I missing something?
Might be helpful to anyone who lands here. https://github.com/microsoft/appcenter/issues/192#issuecomment-822218945
until now , there is no support for trackError using this package.(flutter_appcenter_bundle) any new solutions?
Is there a chance this pull request to get approved?
@kmehmedov still needs a bit of work. I think it needs to properly transform the Flutter StackTrace to iOS/Android StackTraceElements. Otherwise the stack trace that appears in AppCenter currently is the trace at time of Exception instantiation.
https://github.com/hanabi1224/flutter_appcenter_bundle/pull/51#discussion_r860109454
Though I'd be happy to remove the Stack trace part of my PR, I think AppCenter expects a Exception/Throwable object, so the outcome on AppCenter will always be unsatisfactory.