-
Notifications
You must be signed in to change notification settings - Fork 905
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
app crash on share #1185
Comments
Maybe because it's a base64 image... If you use Android Studio, can you paste what logcat says? |
line 274: change with this: if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
|
You are awesome. Thank you very much it is working in Android 12 and the lower versions. |
It is in the SocialSharing.java.txt, but you also have to change the pendingIntent.getIntentSender() to finalPendingIntent.getIntentSender()). This is in line 377 or 385 chooseIntent = Intent.createChooser(sendIntent, chooserTitle, finalPendingIntent.getIntentSender()); |
For those with an error |
Android 12 API Level 31
my app crash on click
<\button onclick="window.plugins.socialsharing.share(null, 'Android filename', 'data:image/png;base64,R0lGODlhDAAMALMBAP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAUKAAEALAAAAAAMAAwAQAQZMMhJK7iY4p3nlZ8XgmNlnibXdVqolmhcRQA7', null)">base64 image only</button>
The text was updated successfully, but these errors were encountered: