Description
Plugin(s)
- Analytics
- App
- App Check
- Authentication
- Crashlytics
- Cloud Firestore
- Cloud Functions
- Cloud Messaging
- Cloud Storage
- Performance
- Remote Config
Version
6.1.0
Platform(s)
- Android
- iOS
- Web
Current behavior
using @capacitor-firebase/performance (v6.1.0), but whenever I call FirebasePerformance.startTrace(), the app crashes with the message, "The default Firebase app has not yet been configured. Add FirebaseApp.configure() to your application initialization."
Expected behavior
no crash and successfully collect custom trace data to PerformanceMonitoring dashboard
Reproduction
https://github.com/capawesome-team/capacitor-firebase
Steps to reproduce
I’m using firebase-ios-sdk (v10.25.0) in Xcode and have enabled FirebasePerformance. It has been working for a while, and I can see auto-collected performance data in the Firebase console. Now, I’d like to add custom traces. I tried using @capacitor-firebase/performance (v6.1.0), but whenever I call FirebasePerformance.startTrace(), the app crashes with the message, "The default Firebase app has not yet been configured. Add FirebaseApp.configure() to your application initialization."
I also tried using the 'firebase/performance' package on the backend. There was no error, and I could see API logs following the official Firebase debugging method. However, the API response returned:
{
"nextRequestWaitMillis": "10000",
"logResponseDetails": [
{
"responseAction": "DELETE_REQUEST"
}
]
}
I've been stuck on this issue for several days. Does anyone know what I might be doing wrong, or is it currently impossible to record custom traces in Firebase Performance Monitoring with Capacitor?
Other information
No response
Capacitor doctor
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2
Installed Dependencies:
@capacitor/cli: 6.0.0-rc.0
@capacitor/core: 5.6.0
@capacitor/android: 5.6.0
@capacitor/ios: 5.6.0
[success] iOS looking great! 👌
[success] Android looking great! 👌
Before submitting
- I have read and followed the bug report guidelines.
- I have attached links to possibly related issues and discussions.
- I understand that incomplete issues (e.g. without reproduction) are closed.