localnotificationsplugin
localnotificationsplugin copied to clipboard
Crash -> Android 12+ (version 31 and above) requires FLAG_IMMUTABLE or FLAG_MUTABLE
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.