ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️
529 stars 598 forks source link

PDF is not shared to the latest Whatsapp version #1521

Closed fabth closed 1 year ago

fabth commented 1 year ago

Bug Report

Plugin(s)

@capacitor/share v 4.0.1 / 4.1.1

Capacitor Version

Latest Dependencies:

@capacitor/cli: 4.7.3
  @capacitor/core: 4.7.3
  @capacitor/android: 4.7.3
  @capacitor/ios: 4.7.3

Installed Dependencies:

  @capacitor/cli: 4.2.0
  @capacitor/android: 4.2.0
  @capacitor/core: 4.2.0
  @capacitor/ios: 4.2.0

Platform(s)

iOS

Current Behavior

When trying to share an image to the latest version of Whatsapp, only the text property is copy. The PDF is missing. This ONLY occurs in the latest WhatsApp version in iOS (23.5.78). In the previous Whatsapp version the PDF is shared correctly. In Android the PDF is shared correctly in all Whatsapp versions.

Expected Behavior

The PDF must be shared in iOS and Android in all (or at least the latest) WhatsApp version.

Code Reproduction

Repository: https://github.com/fabth/whatsapp-issue

Additional Context

This is only happening in iOS with the latest WhatsApp version.

Ionitron commented 1 year ago

This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.

Please see the Contributing Guide for how to create a Code Reproduction.

Thanks! Ionitron 💙

fabth commented 1 year ago

Hi @Ionitron I share a repository with the information.

fabth commented 1 year ago

Hi, any news?

jcesarmobile commented 1 year ago

This is a whatsapp limitation, it only allows to share one thing at a time, they might have changed the order of the items and now pick the text first instead of the file. There is nothing we can do about it, the native share sheet is the same for all apps and file sharing works in other apps.

If you really need to send the PDF, you'll need to send only the file, without the text property.

ionitron-bot[bot] commented 1 year ago

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.