bug(@capacitor/share): Issue while sharing an image via Whatsapp
facumartig opened this issue Β· comments
Bug Report
Plugin(s)
@capacitor/share: 5.0.0
Capacitor Version
π Capacitor Doctor π
Latest Dependencies:
@capacitor/cli: 5.7.0
@capacitor/core: 5.7.0
@capacitor/android: 5.7.0
@capacitor/ios: 5.7.0
Installed Dependencies:
@capacitor/android: 5.6.0
@capacitor/cli: 5.6.0
@capacitor/core: 5.6.0
@capacitor/ios: 5.6.0
[success] iOS looking great! π
[success] Android looking great! π
Platform(s)
iOS (didn't try in Android yet)
Current Behavior
When sharing a text and an image by Whatsapp, only the text is shared. For other services it works fine (e.g. Telegram).
Expected Behavior
Both the text and image should be shared.
Code Reproduction
await Share.share({
title: "QR Code",
text: "Scan this QR code",
url: qrImageUri,
}).catch(console.error);
- Click on share button
- Selecting a Whatsapp contact
- The preview doesn't show the image. When sending it, it only appears the text ("Scan this QR code").
This issue has been labeled as type: bug
. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.
Any solutions?
This is a limitation of WhatsApp. You can share both text and images but not simultaneously.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.