microsoft / appcenter

Central repository for App Center open source resources and planning.
https://appcenter.ms
Creative Commons Attribution 4.0 International
1.01k stars 223 forks source link

Report handled errors for React Native apps #285

Open southerneer opened 6 years ago

southerneer commented 6 years ago

Description (feature request)

Allow generating crash reports for handled errors similar to the capability built into bugsnag-react-native. Our app makes heavy use of this in a top-level component with React 16's (relatively) new error boundary concept. Any chance this capability has made its way to the roadmap yet?

elamalani commented 6 years ago

@southerneer Thanks for using App Center. This feature is on our roadmap but unfortunately, there is no ETA yet. We will keep this issue open for now and let you know once we decide to support it in App Center.

jlkalberer commented 5 years ago

Where is this on your roadmap?

This is extremely necessary considering how long error boundaries have been available. I wrap most of my core components with them so I'll be missing out on many of the most important exceptions.

If this isn't coming soon, I can try to make a PR but I'd really prefer that I didn't have to.

blparr commented 5 years ago

Thanks for your feedback here. Unfortunately, this is not on our top priority list for Diagnostics at the moment, and still don't have an ETA for it.

jlkalberer commented 5 years ago

It's fine. I removed all the Appcenter modules since I can't even get postinstall to work on Windows and it doesn't compile on OSX.

kamiranoff commented 5 years ago

We used to log non-fatal issues with Crashlytics. I thought App Center was replacing it? There is no way to log these errors at the moment or am I missing something?

blparr commented 5 years ago

Hello @kamiranoff, App Center support handled errors for Xamarin and Unity, but not for React Native yet. We will transfer this issue to our App Center GitHub repo and you can upvote it there for better visibility. Thank you

gustavopch commented 4 years ago

If I understand this correctly, appcenter-crashes is not suitable for RN apps that implement graceful degradation? So if we want errors to be logged, we must not handle them but rather let the app explode? :smile:

AdrianMrn commented 4 years ago

Hey @blparr and @elamalani, any update on this issue? Like others mentioned, this is a critically important feature. I don't want to let my app crash if a user encountered an error while handling an IAP, but at the same time I'd really like to know about that error.

poolhickman commented 3 years ago

I know it's not a great solution, but I have been using appcenter-analytics and then calling trackEvent('Error', { error: error.toString() }) in the componentDidCatch method of my error boundary. This will then log that event in the analytics tab of app centre with in the error message from componentDidCatch as a param. It may not be as useful for users that are already heavily using this for actual events, but as I'm only tracking these 'Error' events, I'm making do.

albertstill commented 3 years ago

Any update on this?

ridmal commented 3 years ago

Any update on this ? ( or any alternative way to upload errors with react native )

kserjey commented 3 years ago

Not sure, but maybe that's the solution: https://github.com/microsoft/appcenter-sdk-react-native/pull/927