Closed gipartha closed 1 week ago
I found a few problems with this issue:
Hi @gipartha, thanks you for reaching out. The issue you're experiencing is manufacturer/ OEM specific. Unfortunately, without being able to replicate the issue it will be difficult to conduct a deeper investigation.
For now, I suggest try adding the tools:remove
the android:directBootAware
from ComponentDiscoveryService
in the merged manifest as suggested in here.
That said, I'll close this for now. If there are more developers that are encountering this issue and can share an MCVE then we can prioritize a deeper investigation and reopen this thread. Thank you!
HI As I mentioned earlier it's occurring in all manufacturer devices. Not sure why you need local repro for the issues which are getting reported in the play console.
May I know what you mean by MCVE? Also will you be able to get whether all app developers who use Firebase are facing this issue or not with some telemetry at your end?
The problem with tools:remove
is code maintainability:
[REQUIRED] Step 2: Describe your environment
Android Studio version: Android Studio Jellyfish | 2023.3.1 Patch 1 Build #AI-233.14808.21.2331.11842104, built on May 15, 2024 Runtime version: 17.0.10+0-17.0.10b1087.21-11572160 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Firebase Component: com.google.firebase:firebase-messaging
Component version: 23.2.1
[REQUIRED] Step 3: Describe the problem
Google Play Console Crash Link here
From the direct boot mode Android documentation, it's clear that this crash can occur only if some component is registering for direct boot mode. No component in our app does this and from the merged manifest we could find that below Firebase components are using the same.
Steps to reproduce:
We have been observing this app crash due to IllegalStateException in Play Console:
Issue is seen across all OS versions.
This crash majorly occurs on Oneplus and Huwaie devices more. (Samsung, RealMe also can be found though)
And we are unable to repro this issue locally.
Seems like this has been already reported here and closed without any fix from Firebase side. Hence requesting to provide some options to disable the direct boot aware attribute which is enabled by default for the Firebase components mentioned above or a fix which doesn't start our app on direct boot mode due to Firebase component launch.
Relevant Code: