esys-flutter-share icon indicating copy to clipboard operation
esys-flutter-share copied to clipboard

[iOS] WhatsApp File share not working

Open avvari-da opened this issue 4 years ago • 25 comments

Describe the bug When trying to share to WhatsApp on iOS, the image is not being shared. But image is being is share to Gmail or any other app.

To Reproduce Share file to WhatsApp on iOS via OS share menu. And also trying sharing a file to Gmail App via the same OS share menu. Only WhatsApp share is not bearing the image. However, the same is working on Android

Expected behaviour Image file is expected to get shared via WhatsApp

Screen Record https://youtu.be/JOzddotsIeY

Smartphone

  • Device: iPhone X
  • OS: iOS 12.4.1
  • Version: v1.0.2

Additional Context Generating the screenshot image using screenshot pub (v0.1.1)

avvari-da avatar Sep 12 '19 15:09 avvari-da

Any updates on this?

abianche avatar Nov 04 '19 13:11 abianche

I just tried to omit the optional "text" property, and it worked. e.g.:

 Share.file(
          title,
          "$name.png",
          bytes,
          "image/png",
          // text: title,
        );

abianche avatar Nov 12 '19 21:11 abianche

I'm having the same problem with video. Will try leaving out the text.

AriCohen8 avatar Nov 23 '19 21:11 AriCohen8

faced same issue! @d-wolf any solution ? It works in Android but not working in iOS

pmrajani avatar Dec 30 '19 13:12 pmrajani

Same issue. Works in Android. Workaround is not good, I need both image and text. Any update?

okless71 avatar Jan 28 '20 08:01 okless71

I have the same issue... Whats happen with whatsapp?

daymanhq avatar Feb 21 '20 11:02 daymanhq

Same issue, please can this be address (great plugin though so many many thanks)

jonsamwell avatar Apr 06 '20 01:04 jonsamwell

Same issue

kornha avatar Apr 29 '20 06:04 kornha

Any update on this?

jonsamwell avatar Jul 01 '20 04:07 jonsamwell

Any update on this, Whatsapp not allowing both image and text share together. Is this because of Whatsapp update or something else.

This functionality was working before on esys-flutter-share

MunishThakur avatar Jul 04 '20 14:07 MunishThakur

I can confirm, It has not worked in the last 6 months

edwin-alvarez avatar Jul 04 '20 17:07 edwin-alvarez

Yeh, I checked other libraries as well. those are also not working. Might be an issue of Whatsapp.

MunishThakur avatar Jul 04 '20 17:07 MunishThakur

I just tried to omit the optional "text" property, and it worked. e.g.:

 Share.file(
          title,
          "$name.png",
          bytes,
          "image/png",
          // text: title,
        );

I tried and it worked! Thanks.

carpiodanielj avatar Jul 08 '20 14:07 carpiodanielj

@carpiodanielj But that would just share the image, right? It isn't sending any text to WhatsApp.

avvari-da avatar Jul 09 '20 12:07 avvari-da

We need to share both text and Image as we can do on Android. Image is related to my application content and text would be application dynamic link so anyone can click and consume the content.

Is there any way to achieve that?

MunishThakur avatar Jul 09 '20 13:07 MunishThakur

We need to share both text and Image as we can do on Android. Image is related to my application content and text would be application dynamic link so anyone can click and consume the content.

Is there any way to achieve that?

Thats upto you to implement on ur side, got nothing to do with this plugin, of coz that's achievable

jason-shen avatar Jul 09 '20 13:07 jason-shen

Thats upto you to implement on ur side, got nothing to do with this plugin, of coz that's achievable

Yeh not a problem of plugin but might be the issue with Whatsapp sharing on iOS (both text & Image together). If you know a workaround to share both on Whatsapp. Please let me know.

MunishThakur avatar Jul 09 '20 20:07 MunishThakur

Any update on this? It works very well with android but doesn't work with ios.

narayanansampath avatar Aug 28 '20 03:08 narayanansampath

I also need this fix, greatly appreciated if someone can help on it.

edwin-alvarez avatar Sep 02 '20 13:09 edwin-alvarez

@carpiodanielj But that would just share the image, right? It isn't sending any text to WhatsApp.

That's right, only image is sent.

carpiodanielj avatar Sep 10 '20 15:09 carpiodanielj

How to directly open whatsapp? and particular selected number Is that possible?

Sreejithtechno avatar Oct 16 '20 05:10 Sreejithtechno

How to directly open whatsapp? and particular selected number Is that possible?

I think it is possible checkout this link here: https://faq.whatsapp.com/iphone/how-to-link-to-whatsapp-from-a-different-app

narayanansampath avatar Oct 16 '20 13:10 narayanansampath

The issue of being able to share only image or text has nothing to do with this library. I invested quite a long time with this issue and found out it's a problem with the whatsapp api. You can check similar apps like walmart, amazon etc and they also have the same behavior.

narayanansampath avatar Oct 16 '20 13:10 narayanansampath

I am Also Facing Same issue. Is anyone got any other ways to do this?

DeepashreeBallodi avatar Mar 12 '21 12:03 DeepashreeBallodi

It's long time since the issue was created. Is there any planning to fix?

Abhishek0116 avatar Jul 25 '21 14:07 Abhishek0116