Closed eseidel closed 7 months ago
I set up a test project with FCM and was able to receive and open background notifications without issue. One thing I'm noticing from the crash log is the split_config.arm6...
in the left column. Maybe FCM is a red herring here?
Going through the steps of adding crashlytics to our demo app and noticed the bit in https://firebase.google.com/docs/crashlytics/get-started?platform=flutter#add-sdk about "If your Flutter project uses the --split-debug-info flag"
Several issues here, starting to catalogue them
We believe we understand the issue now.
The hang is believed non-fatal (the app doesn't crash, or hang indefinitely), but will hang (in the background) for some period of time thus triggering ANR reports from Android/Crashlytics. We believe it occurs when:
We have a fix planned and being worked on. It's a slightly involved refactoring of our Rust code which will likely take most of today but should remove this entire class of issues. I expect us to release a fix tomorrow. We also have a (planned) release coming out today, (0.5.1) which will not have this fix in it yet.
Thank you for your patience.
Fixes planned:
Fix Engine code to not call into Shorebird when not using libapp.so and log a warning. This is a speculative fix noticed while in this code. Although FCM is still using libapp.so, other callers of Flutter might not, and it appears we will do the wrong thing for them, so might as well fix it while we're there.
Addressed in https://github.com/shorebirdtech/engine/pull/31
I'm pleased to report that I have a fix compiling for 2. and 3, testing now.
I am the one who reported this error to you on discord. glad that the fix is still going well. Thank you.
Report from a customer:
Definitely looks like our bug.
There are at least two bugs I could imagine here:
In either case, we need to make an example app which uses FlutterFirebaseMessagingBackgroundExecutor and see if we can reproduce: https://github.com/firebase/flutterfire/blob/master/packages/firebase_messaging/firebase_messaging/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingBackgroundExecutor.java