80
Views
14
Comments
[Social Sharing] Share crashes on android
social-sharing
Mobile icon
Forge asset by assif_tiger
Application Type
Mobile

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 

2021-04-09 11-42-43
assif_tiger
 
MVP

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/5347

Good Luck!

UserImage.jpg
Sarah Almahmid

Thank you for your reply.

Using latest version  1.0.4  

UserImage.jpg
Sarah Almahmid
2021-04-09 11-42-43
assif_tiger
 
MVP

- make sure you generate a new build
- Removed the old & Installed the fresh build on device

UserImage.jpg
Sarah Almahmid

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

2023-01-23 13-31-46
Renato Moreira

I have app code is not compatible with Android 12. Any plan to fix it soon?

UserImage.jpg
Gadar S

I think Android code is not compatible with Android 12. Any plan to fix it soon?

2021-04-09 11-42-43
assif_tiger
 
MVP

Thank you for the finding;
We'll try to address the same at our best!

2021-04-09 11-42-43
assif_tiger
 
MVP

Dear Users,
Please test the same with Under Development version Version 1.0.5 & let us know :) 

Thanks




UserImage.jpg
Gadar S

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?

UserImage.jpg
Aditya EP

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.

2019-05-22 09-30-04
Carlos Daniel Carreira Batista

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?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.