Android app crashes when trying to share with the following error:
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent
Hi,Can u please mention the version used for the same?If it's not the latest one i.e Version 1.0.4 ; Kindly refer to the latest version & try again :)https://www.outsystems.com/forge/component-versions/5347Good Luck!
Thank you for your reply.
Using latest version 1.0.4
Great!
still the same issue though
- make sure you generate a new build- Removed the old & Installed the fresh build on device
Did the same steps and still facing the same issue and I have been using the latest version.
It works on my other phones, the issue is in one of my devices with Android v. 12
I have app code is not compatible with Android 12. Any plan to fix it soon?
I think Android code is not compatible with Android 12. Any plan to fix it soon?
Thank you for the finding;We'll try to address the same at our best!
Dear Users,Please test the same with Under Development version Version 1.0.5 & let us know :)
Thanks
Thanks for your prompt response. We have gone ahead and applied changes as per this post and rebundled the zip file. https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/1176. I guess your fix would be similar?
Hi @Gadar S,
Thanks for the recommendation, this solved the issue for Android 12/API SDK 31 related and also for other Social Sharing Cordova plugins.
Glad that it helped.
Hello,
I tried this new version of the plugin. Instead of crashing the app, when I share in Android 12, nothing happens. In other Android versions or IOS the share is OK. There are no errors in adb logs. The ShareLinkViaFacebook action is called but nothin happens.
Does anyone have a clue?