Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add support for Crashlytics #14765

Closed
dotdoom opened this issue Feb 18, 2018 · 33 comments

Comments

@dotdoom
Copy link

commented Feb 18, 2018

In #9592 there's a request for adding Crashlytics, but it was blocked by an absence of crash reporting support in Flutter. Now that there are ways to intercept errors, it should be possible to add Crashlytics / Firebase error reporting.

@xster

This comment has been minimized.

Copy link
Contributor

commented Feb 23, 2018

cc @collinjackson might have updates.

I'd like to use it for the gallery as well #4070

@hocinehamdi

This comment has been minimized.

Copy link

commented Feb 27, 2018

It will be perfect to have first class dart crash reporting tool

@pulyaevskiy

This comment has been minimized.

Copy link
Contributor

commented Mar 3, 2018

Very much interested in this as well. It would be great to have crash reports in Firebase console for both Dart and native side errors.

@PareshMayani

This comment has been minimized.

Copy link

commented Mar 6, 2018

Indeed it's much needed thing! Looking forward for either crashlytics or Firebase integration

@ekbiker

This comment has been minimized.

Copy link

commented Apr 4, 2018

This would be awesome.

@wahibhaq

This comment has been minimized.

Copy link

commented Apr 27, 2018

I had to use Crashlytics and ended up on this page. It would be really nice to have it for flutter 🙏

@jpgilchrist

This comment has been minimized.

Copy link

commented May 9, 2018

Given the latest updates in Google I/O, this seems like a pretty obvious thing to include. firebase_analytics plugin already provides the google analytics portion. However, the crashlytics isn't available, which is a major part of the firebase offerings.

@AppleEducate

This comment has been minimized.

Copy link

commented May 10, 2018

Definitely would love this plugin!

@eseidelGoogle

This comment has been minimized.

Copy link
Contributor

commented May 15, 2018

Looks like this is now our top most requested issue. :D

@yjbanov looked at this briefly last year and determined it would require some changes to Crashlytics itself to add Dart support. We'll reach out to the crashlytics team again and see how things have changed in the intervening months. This seems like a very reasonable request and should definitely be doable. Just a question of when. :)

@eseidelGoogle

This comment has been minimized.

Copy link
Contributor

commented Jun 6, 2018

I spoke with @collinjackson a while back and it sounded like they or @kroikie or @bparrishMines were interested in taking this on. I believe mostly this requires some coordination with the crashlytics team. FWIW this is still our top-most requested bug. :)

@Hixie Hixie added this to the Stretch Goals milestone Jun 19, 2018

@ChristBKK

This comment has been minimized.

Copy link

commented Jul 13, 2018

+1 for this one

@gonzalonm

This comment has been minimized.

Copy link

commented Jul 26, 2018

Any news on this? I would really appreciate to have Crashlytics integration on Flutter!

@vithanichandresh

This comment has been minimized.

Copy link

commented Jul 31, 2018

+1

1 similar comment
@jjbeto

This comment has been minimized.

Copy link

commented Aug 9, 2018

+1

@jaumard

This comment has been minimized.

Copy link

commented Aug 16, 2018

Any news on this ? Did the plugin start ? I want to take a look see if I can help. Would be nice to use Crashlytics (and other reporting tool of Fabric) with Flutter as we're using a lot of functionality of Fabric into our native app already.

@karantanwar

This comment has been minimized.

Copy link

commented Aug 17, 2018

it would be great to have this plugin

@jaumard

This comment has been minimized.

Copy link

commented Aug 21, 2018

Hello everyone, I've just implemented a plugin for Crashlytics integration for iOS and Android. Reports look like this:
capture d ecran 2018-08-21 a 10 11 13

It's not perfect but at least it's a start :) it can also allow you to set custom logs and informations (general and user info) from Dart.

Let me know what you think of it guys.

One limitation is that as the report is with Crashlytics SDK, it reports manual exceptions as Non Fatal, one way to bypass that would be to make the app crash, I've opened an issue on my repo to collect thoughts about this.

Here is the repo https://github.com/kiwi-bop/flutter_crashlytics and the pub packages https://pub.dartlang.org/packages/flutter_crashlytics

@nstrelow

This comment has been minimized.

Copy link

commented Oct 9, 2018

It would be awesome to get official support for Crashlytics!

@eseidelGoogle

This comment has been minimized.

Copy link
Contributor

commented Jan 9, 2019

Thanks @jaumard. I'm still working with that team (slowly). I expect it will be a while until have anything to share though. But thank you for all the work you've done so far (including the clear enumeration of needs)!

@Hixie

This comment has been minimized.

Copy link
Contributor

commented Jan 16, 2019

@kroikie I've heard through the grapevine that you're working on this so I assigned it to you. Please update the milestone field to be the month you (very conservatively) think you'll be done. Thanks!
And thanks for working on this!

@neiljaywarner

This comment has been minimized.

Copy link

commented Jan 29, 2019

@Hixie @eseidelGoogle @kroikie Can we please get a recipe on flutter.io that does not require a sentry.io account?

Ideally with a link to a section somehow detailing pros and cons compared to the first-class support that is a work in progress.

It looks like crashlytics support is "good enough" right now but improving, but i can't figure out yet how to clarify that, and the need is increasing. thank you

@Hixie

This comment has been minimized.

Copy link
Contributor

commented Jan 29, 2019

@neiljaywarner are you asking for sample code that doesn't involve sentry.io?

@neiljaywarner

This comment has been minimized.

Copy link

commented Jan 29, 2019

Yes please
The path of least friction to crashlytics as of feb2019 would help a lot of people I think

@hummatli

This comment has been minimized.

Copy link

commented Feb 25, 2019

I like the idea! Google must do this!

@Hixie Hixie modified the milestones: March 2019, Overdue Mar 6, 2019

@GreenAppers

This comment has been minimized.

Copy link

commented Mar 7, 2019

Debugging my app's SIGSEGV in libflutter.so, I've been working to extend flutter_crashlytics to include CrashlyticsNdk and thereby actually catch SIGSEGV and report it.

However I have not been able to successfully symbolicate the crashes.

The problem seems to be that "flutter build" produces no artifacts with debugging symbols. The files under build/app/intermediates/transforms/stripDebugSymbol and build/app/intermediates/transforms/mergeJniLibs are nearly same size, and it seems that none of them contain debugging symbols.

We need to modify "flutter build" to produce some libflutter.so with debugging symbols. Then configure build.gradle like:

crashlytics {
enableNdk true
androidNdkOut "../../build/app/intermediates/transforms/mergeJniLibs/release/0/lib"
androidNdkLibsOut "../../build/app/intermediates/transforms/stripDebugSymbol/release/0/lib"
}

And upload with ./gradlew crashlyticsUploadSymbolsRelease.

Many, if not all, flutter_crashlytics users need this. As I've learned, writing a pure Dart app will not protect you from native crashes. Without CrashlyticsNdk we can't learn of users' SIGSEGV, and without changes to "flutter build" we can't symbolicate them.

@eseidelGoogle

This comment has been minimized.

Copy link
Contributor

commented Mar 7, 2019

https://github.com/flutter/flutter/wiki/Crashes includes instructions on how to get flutter.jar and flutter.framework files with symbols in them. Let me know if that doesn't help?

@GreenAppers

This comment has been minimized.

Copy link

commented Mar 8, 2019

Thanks for this and the quick response. This is exactly what I needed.

It would be nice to find an easier solution to getting these uploaded to Crashlytics.

@GreenAppers

This comment has been minimized.

Copy link

commented Mar 8, 2019

I would appreciate any comments on PR towards symbolicating native crashes in Flutter apps with Crashlytics: https://github.com/kiwi-bop/flutter_crashlytics/pull/64/files

Before:

image

After:

image

Until I can fix the bug I don't know if these frames are correct. They seem plausible because this crash is preceded by video artifacts in canvas.

@MisterJimson

This comment has been minimized.

Copy link

commented Mar 20, 2019

Should this be closed? The pub link on the readme goes nowhere. Is the package published?

https://github.com/flutter/plugins/tree/master/packages/firebase_crashlytics

@jaumard

This comment has been minimized.

Copy link

commented Mar 20, 2019

Also notice that is a partial support, as it does not more than flutter_crashlytics and have same limitations... the main who is that crash are reported as non fatal :/

@kroikie

This comment has been minimized.

Copy link

commented Mar 20, 2019

@MisterJimson The pub link should be working now.

@jaumard You are correct that the crashes are reported as non fatal. Future versions will address this, thanks for the feedback.

@kroikie

This comment has been minimized.

Copy link

commented Mar 20, 2019

Filed an issue for fatal support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.