chemerisuk / cordova-plugin-web-share

Web Share API polyfill for Cordova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android 12 support

W84Soft opened this issue · comments

Hi,
You need to change android/WebSharePlugin.java 42 line to

SHARE_REQUEST_CODE + 1, new Intent(Intent.EXTRA_CHOSEN_COMPONENT), PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE);

for android 12 support

@chemerisuk . This change is important. The plugin doesn't work at all in the current state for API31+
But this small addition from @VVilquack fixes it.

@VVilquack do you mind to create a PR with the requested change?

Fixed in v1.2.1. Please let me know if it works for you @VVilquack @fredriksthlm

Everything worked for me on iOS and Android API 31