-
Notifications
You must be signed in to change notification settings - Fork 641
Open
Labels
Description
[REQUIRED] Step 2: Describe your environment
- Android Studio version: Android Studio Electric Eel | 2022.1.1 Patch 2
- Firebase Component: Performance
- Component version: 20.3.1
[REQUIRED] Step 3: Describe the problem
Since version 20.3.1 it seems that Firebase Performance does not report the application startup time if Firebase is manually initialized.
Probably due to this check in FirebasePerfEarly
:
firebase-android-sdk/firebase-perf/src/main/java/com/google/firebase/perf/FirebasePerfEarly.java
Line 48 in 02b3365
if (startupTime != null) { |
As StartupTime is not initialized if Firebase is manually instantiated
firebase-android-sdk/firebase-common/src/main/java/com/google/firebase/FirebaseApp.java
Line 432 in 02b3365
// Don't provide StartupTime in direct boot mode or if Firebase was manually started |
Steps to reproduce:
Disable FirebaseInitProvider
and initialize Firebase in code with FirebaseApp#initializeApp(context)
, the App startup time won't be reported on Firebase Dashboard
SimonMarquis, hongyang-hua-20230331, vipulpelm, ganadist, Seonny and 6 more