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

canShareVia is returning error call back for WhatsApp on Android 11 #1174

Open
bascoder opened this issue May 27, 2022 · 0 comments · May be fixed by #1175
Open

canShareVia is returning error call back for WhatsApp on Android 11 #1174

bascoder opened this issue May 27, 2022 · 0 comments · May be fixed by #1175

Comments

@bascoder
Copy link

canShareVia is returning error call back for WhatsApp on Android 11 when the target SDK is API Level 30 or higher.

Using window.plugins.socialsharing.share with Whatsapp selected it works.

This has to do with a breaking change in Android 11.
The error can be resolved by adding queries to you AndroidManifest file:

<manifest>
  ...
  <queries>
    <package android:name="com.whatsapp" />
  </queries>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant