firebase-cloud-messagingmauicrashlytics

MAUI app crashing after adding firebase crashlytics


I followed the instructions in https://cedricgabrang.medium.com/firebase-push-notifications-in-net-maui-android-32c808844d7e

But getting this error when app launching.(I'm targeting only android platform other removed).enter image description here

Java.Lang.RuntimeException: 'Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.IllegalStateException: The Crashlytics build ID is missing. This occurs when Crashlytics tooling is absent from your app's build configuration. Please review Crashlytics onboarding instructions and ensure you have a valid Crashlytics account.'


Solution

  • I fixed this issue with following way:

    Go to> Platform>Android>Resources>Values Now here I added a file "strings.xml" which is having code:

    <resources>
    <string name="default_notification_channel_id">ur_package_name.general</string>
    </resources>
    

    Now Important thing to do is:

    Right click on string.xml file, and click on 'properties' now you will see a small window where you need to set 'Build Action' as 'Android Resource'.

    It working fine for me now, sorry for late answer.