localnotificationsplugin icon indicating copy to clipboard operation
localnotificationsplugin copied to clipboard

Crash -> Android 12+ (version 31 and above) requires FLAG_IMMUTABLE or FLAG_MUTABLE

Open Jerome-Liger opened this issue 3 years ago • 1 comments

Bug

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent

Plugin Version: 3.0.1 (08/08/2018) Platform : Android v31+
Device/Hardware: Any Android12+ Device

Expected behavior

No Crash

Actual behavior

Crash

Steps to reproduce the behavior

Just compile targeting Android 12 Launch App Call -> CrossLocalNotifications.Current.Show("title", "body"); -> CRASH

Please, add the FLAG_IMMUTABLE to this plugin :-)

PS : yes, in real-world-production-apps (not theorical todo-list), plugins are used for a long time and need to be supported... we can't rewrite all our custumers applications with the latest (unstable/pluginless) technologies (MAUI), but we need to update it, cause GooglePlay force to target Android12 to be published/updated...)... don't forget Xamarin.Forms please ;-)

Thanks.

Jerome-Liger avatar Oct 27 '22 04:10 Jerome-Liger

@edsnider please consider reviewing this, because lots of people uses this plugin in production apps and now they are being forced to upgrade android target to 12.

marciosouzajunior avatar Dec 22 '22 16:12 marciosouzajunior