-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Description
Hi,
When Firebase is integrated (Firebase.configure() called) in an iOS app that supports CarPlay (CPTemplateApplicationScene), the CarPlay interface becomes fully transparent after the app relaunches following a crash. A post on apple forum talk about the same issue: https://discussions.apple.com/thread/256152967
If Firebase is completely removed from the project, the issue disappears.
This happens regardless of:
Crash type (fatalError, abort(), EXC_BAD_ACCESS, etc.)
Whether FirebaseApp.configure() is delayed
Whether FirebaseCrashlyticsCollectionEnabled is set to false
The issue only occurs when Firebase is "configured" (started).
After a crash:
App relaunches correctly on iPhone.
CarPlay scene reconnects.
templateApplicationScene(_:didConnect:) is called.
setRootTemplate is executed.
UIWindow and root controller exist.
But the CarPlay screen is fully transparent (no rendering).
Even replacing the map with a basic UIView with red background still results in a transparent screen.
What Has Been Tested:
Removing Firebase entirely → ✅ Issue disappears
Delaying FirebaseApp.configure() → ❌ No change
Setting FirebaseCrashlyticsCollectionEnabled = false → ❌ No change
Different crash types → ❌ Same result
Forcing setRootTemplate again → ❌ Still transparent
Recreating MapView instance → ❌ Still transparent
This suggests the issue occurs due to how Firebase modifies crash handling and/or process termination, rather than initialization timing.
Reproducing the issue on iOS 26.x, no issue on iOS 17.6.1
Reproduction Steps with Sample:
- Add your GoogleService-Info.plist (add
- Install and run the sample on a real device.
- Connect to CarPlay.
- Launch the app.
- The app crashes automatically after 5 seconds.
- Relaunch the app.
- Observe that the CarPlay screen is fully transparent.
Expected behavior:
CarPlay should render the template normally after relaunch.
Actual behavior:
The CarPlay scene connects, but nothing is rendered (transparent screen).
If Firebase is removed from the sample project, the issue no longer occurs.
This sample isolates the problem and demonstrates that it is not related to app-specific logic.
Firebase SDK Version
12.10.0
Xcode Version
26.3
Installation Method
Swift Package Manager
Firebase Product(s)
Crashlytics, Analytics
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
If using CocoaPods, the project's Podfile.lock
No response

