chemerisuk / cordova-plugin-web-share

Web Share API polyfill for Cordova
MIT License
13 stars 9 forks source link

Android 12 support #12

Closed W84Soft closed 2 years ago

W84Soft commented 2 years ago

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

fredriksthlm commented 2 years ago

@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.

chemerisuk commented 2 years ago

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

chemerisuk commented 2 years ago

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

W84Soft commented 2 years ago

Everything worked for me on iOS and Android API 31