Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 12 issue #1201

Open
gusmarra opened this issue Dec 6, 2022 · 4 comments
Open

Android 12 issue #1201

gusmarra opened this issue Dec 6, 2022 · 4 comments

Comments

@gusmarra
Copy link

gusmarra commented Dec 6, 2022

Hi guys,

I installed the android 12 version cordova-plugin-x-socialsharing-android12. I am having issues trying to build the app. I got the error

requires an android:value or android:resource attribute

is anyone else having this issue?

Thanks

@graphefruit
Copy link

Not this kind of issue, but sharing with android 12 results into crash :<

@nxz91
Copy link

nxz91 commented Jan 23, 2023

Have any of you been able to resolve this?

@viacheslavspasibo
Copy link

The same issue. It crashes on android 12

java.lang.IllegalArgumentException: com.spooorts.hannover: 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.
    at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
    at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:673)
    at android.app.PendingIntent.getBroadcast(PendingIntent.java:660)
    at nl.xservices.plugins.SocialSharing$2.run(SocialSharing.java:274)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
    at java.lang.Thread.run(Thread.java:1012)

@EYALIN
Copy link

EYALIN commented Apr 12, 2023

@graphefruit @nxz91 @viacheslavspasibo @gusmarra
it has been fixed in my forked repo:
https://github.com/EYALIN/community-cordova-plugin-social-sharing

you can install it as an npm package:
cordova plugin add community-cordova-plugin-social-sharing --save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants