-
Notifications
You must be signed in to change notification settings - Fork 147
Xamarin.Firebase.Messaging crashing on failed resolution of datatransport/TransportFactory #604
Comments
I was able to work around this issue by adding the following to my csproj file:
I downloaded the After resolving this issue the app still crashes with the following error: java.lang.IllegalArgumentException: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. But that's another issue. |
version 3.1.2 were bound in: https://github.com/xamarin/GooglePlayServicesComponents/blob/mu-20220215/config.json#L1372-L1398 |
Related: |
Does anyone have any version of Xamarin.GooglePlayServices.Ads working in a net6.0-android project? I either get build errors or runtime crashes no matter what combination of things I've tried. And when I try to build the project myself I just get a bunch of these:
The build instructions reference some build.ps1 file that doesn't exist as well. |
Having identical issue with a brand new MAUI new project template with any Xamarin.Firebase.* package added. |
try adding proguard rules for missing classes R8 might be overly optimistic |
@dtaylorus Firebase Messaging setup broke again with VS 17.3.0 Preview 2.0 upgrade, but your workaround works just fine. I guess the transport aar package versions must match the ones referenced by Xamarin.Firebase.Messaging NuGet package. |
the problem with Firebase is simply dependencies and transitive dependencies. They have to be "aligned" or correct. Firebase team uses I am facing similar issue in #607 stripped down error is:
|
Finally circling back to this issue. I was able to get it working by following the workaround posted by @dtaylorus. The only difference was I had to use version 3.1.4 instead of 3.1.2, I assume due to an update to the nuget since his post. Thank you sir! |
Xamarin.Android Version (eg: 6.0):
MAUI RC1, net6.0-android
Google Play Services Version
The ones included as dependencies of Xamarin.Firebase.Messaging package version 122.0.0.5
Describe your Issue
Upgraded from MAUI Preview 14 to RC1. Had to update Xamarin.Firebase.Messaging reference from 122.0.0 to 122.0.0.5 to get it to build. It now builds and runs, but immediately crashes with the stack trace below.
Relevant information
Add relevant project settings from
*.csproj
file:Packages used:
(I tried updating Google.Apis.FirebaseDynamicLinks.v1 to latest just to make sure that isn't creating any conflicts, but there was no change.)
Build settings (tools)
Include any relevant Exception Stack traces, build logs, adb logs:
The text was updated successfully, but these errors were encountered: