react-native-share / react-native-share

Social share, sending simple data to other apps.

Home Page:https://react-native-share.github.io/react-native-share

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sharing a file + message via WhatsApp does not work on iOS latest anymore

PeterHasitschka opened this issue · comments

Hi guys!

I'm facing a very strange behavior I could not resolve so far.
Since it only occurs on WhatsApp combined with iOS 16.6 (or at least after 16.4) when I try to combine message + file (via local url), i assume this might be a bug.

In my app the user can share a file including a message.
On EVERY Service or Messenger this works fine, except WhatsApp on iOS latest.
It also worked fine before updating iOS to 16.6.x.
The same behavior was also reported by my customers using this version.

Steps to reproduce

  1. Try to share a file + message via Share.open on iOS latest with WhatsApp using the following ShareOptions:
{
    "filename": "Test_Table_2023-09-08_12-03-44",
    "failOnCancel": false,
    "subject": "*** Tablelle 'Test Table'",
    "message": "Ihre *** Tabelle 'Test_Table_2023-09-08_12-03-44' befindet sich im Anhang als CSV-Datei.",
    "type": "text/csv",
    "showAppsToView": true,
    "url": "file:///private/var/mobile/Containers/Data/Application/F8C7F09C-45FE-4E79-BCE6-07B7EB13DAD9/tmp/Test_Table_2023-09-08_12-03-44.csv"
}
  1. Click on Person you want to send it
  2. Only the message appears.

Expected behavior

Sharing a file including a message works on WhatsApp on iOS latest.
It works on ANDROID and EVERY APPLICATION which supports message + file EXCEPT WhatsApp on iOS 16.6.

Actual behavior

The file name appears before selecting a WhatsApp recipient.
Then the Message-Screen appears. Unfortunately only the message is shown but not the file.
It works if i remove the message from the options. However this is not an option, since the message content is important (e.g. for sending via mail).

IMG_5593

IMG_5594

IMG_5595

Environment

  • React Native version: 0.72.4
  • React Native platform + platform version: iOS 16.6
  • Typescript version (if using typescript): 4.8.4

react-native-share

Version: 9.4.0

Any help would be appreciated.
Thanks and greetings from Austria

I am having the same issue. I am sending base64 image in URL but it's not working in iOS.

getting the same issue in android as well

@PeterHasitschka have you found any work around ?

@PeterHasitschka Let us know if you have found any work around?

@ijhar-nivoda @bijomon-tolexo Unfortunately I did not find any workaround but removing the message on iOS.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open

I'm having this same issue for android

I have the same issue for ios, but in android works. I really need to send a url with a message to whatsapp. Someone know other way to do it?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open