A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
.NET MAUI iOS Firebase Crashlytics Not Receiving Crash Reports (Analytics Working)
Hi @Nancy Vo (WICLOUD CORPORATION)
I'm integrating Firebase Analytics and Crashlytics in a .NET MAUI application using:
<PackageReference Include="Plugin.Firebase" Version="4.0.0" />
<PackageReference Include="Plugin.Firebase.Analytics" Version="4.0.0" />
<PackageReference Include="Plugin.Firebase.Crashlytics" Version="4.0.0" />
Current status:
- Android Analytics - Working
- Android Crashlytics - Working
- iOS Analytics - Working
- iOS Crashlytics - Not working
AppDelegate:
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
try
{
var path = NSBundle.MainBundle.PathForResource("GoogleService-Info", "plist");
Console.WriteLine("PLIST PATH: " + path);
CrossFirebase.Initialize("default");
}
catch (Exception ex)
{
Console.WriteLine("Firebase init failed: " + ex);
}
return base.FinishedLaunching(app, options);
}
iOS configuration:
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0-ios'">
<MauiAsset Include="Platforms/iOS/GoogleService-Info.plist"
LogicalName="GoogleService-Info.plist" />
</ItemGroup>
Crash test method:
[RelayCommand]
private void TestFirebaseCrash()
{
throw new Exception("Firebase Crash Test");
}
Additional information:
When I configure GoogleService-Info.plist as BundleResource, Analytics does not work and the following returns null:
var path = NSBundle.MainBundle.PathForResource("GoogleService-Info", "plist");
Console.WriteLine("PLIST PATH: " + path);
For Analytics to work, I had to configure the plist as MauiAsset as shown above.
With this setup:
Analytics events are successfully received in Firebase for iOS.
Firebase Crashlytics detects the iOS app.
Crashlytics dashboard shows "App detected. Waiting for a crash."
No fatal or non-fatal issues appear.
- Tested on Browser Stack App Live (real iOS devices).
Is there any additional iOS-specific configuration required for Crashlytics?