Pushwoosh / pushwoosh-xamarin

13 stars 18 forks source link

Empty project is crashing on Android 12 with Pushwoosh.Firebase.Xamarin.Droid package is added #35

Closed nicolast91 closed 2 years ago

nicolast91 commented 2 years ago

I'm having trouble migrating my Android app to API 31. It keeps crashing on Android 12 devices because of the Pushwoosh.Firebase.Xamarin.Droid package.

So I created an empty Android project and I added only Pushwoosh.Firebase.Xamarin.Droid to the project. When running the project on a device with API >= 31, it crashed.

The exception message is as follow:

Java.Lang.IllegalArgumentException: com.nicolastremblay.test: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.

image

Any chance you will update the package to support API 31?

Thank you,

wfhm commented 2 years ago

Hi @nicolast91 ,

Checking it.

michaelstonis commented 2 years ago

Install the Xamarin.AndroidX.work.runtime NuGet package version 2.7.0 (or later depending on your app configurations).

reference: https://stackoverflow.com/a/70157415/165093