I am having issues doing anything with Firebase, I have followed about 4 different guides online and I am still getting the error listed above. Please see my project and resource details below
MauiProgram.cs
builder.ConfigureLifecycleEvents(events =>
{
events.AddAndroid(android => android.OnCreate((activity, _) => FirebaseApp.InitializeApp(activity)));
});
.csproj Application Id and Google Service Json Refr
<!-- App Identifier -->
<ApplicationId>com.dev.testapp</ApplicationId>
<!-- This file is in the root of my project not Platforms/Android/ -->
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0-android'">
<GoogleServicesJson Include="google-services.json" />
</ItemGroup>
In the google-services.json file, the package_name
and bundle_id
are the same and also match the applicationId
I stated above. Any help is much appreciated this is frustrating.