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

bug(@capacitor/share): Issue while sharing an image via Whatsapp #2034

Closed
facumartig opened this issue Feb 19, 2024 · 4 comments
Closed

bug(@capacitor/share): Issue while sharing an image via Whatsapp #2034

facumartig opened this issue Feb 19, 2024 · 4 comments

Comments

@facumartig
Copy link

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);
  1. Click on share button
  2. Selecting a Whatsapp contact
  3. The preview doesn't show the image. When sending it, it only appears the text ("Scan this QR code").
@ionitron-bot ionitron-bot bot added the triage label Feb 19, 2024
@ionitron-bot ionitron-bot bot removed the triage label Feb 19, 2024
@IT-MikeS IT-MikeS changed the title @capacitor/share - Issue while sending image via Whatsapp bug(@capacitor/share): Issue while sharing an image via Whatsapp Feb 23, 2024
@IT-MikeS IT-MikeS added the type: bug A confirmed bug report label Feb 23, 2024
Copy link

ionitron-bot bot commented Feb 23, 2024

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.

@qliqdev
Copy link

qliqdev commented Mar 23, 2024

Any solutions?

@OS-ricardomoreirasilva
Copy link
Collaborator

This is a limitation of WhatsApp. You can share both text and images but not simultaneously.

Copy link

ionitron-bot bot commented May 7, 2024

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators May 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants