Closed ryanheitner closed 5 months ago
Same here. I can't send images with text with ios. Works on android but on IOS doesn't.
I'm having the same issue. Any solutions or workarounds besides having to choose between text and files?
any updates?
Hi! Sharing images and text same time on IOS does not work for whatsApp. But you can sharing only one, image or text. I suggestion a solutions: if (Platform.isAndroid) { Share.shareXFiles([XFile(file.path)], text: 'text-example'); } else if (Platform.isIOS) { Share.shareXFiles([XFile(file.path)]); }
Hi! Sharing images and text same time on IOS does not work for whatsApp. But you can sharing only one, image or text. I suggestion a solutions: if (Platform.isAndroid) { Share.shareXFiles([XFile(file.path)], text: 'text-example'); } else if (Platform.isIOS) { Share.shareXFiles([XFile(file.path)]); }
This works for WhatsApp and Instagram.
Would really like to have a fix for this issue on iOS. on iOS, sharing image(s)+ text works great for Twitter though. Not for WhatsApp.
Is there any fix for this? Currently facing this on Android and iOS.
i am getting the same issue. Is there any fix for sending both image and text together???
Additionally In iOS, when saving the file to the folder it saves the text as an additional text file. I am not sure if this is the expected behaviour. At least its not documented. This can be easily reproduced in the example app from the share_plus package by changing the example as shown below.
final shareResult = await Share.shareXFiles(
[
XFile.fromData(
buffer.asUint8List(data.offsetInBytes, data.lengthInBytes),
name: 'flutter_logo.png',
mimeType: 'image/png',
),
],
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
text: 'Share XFile from Assets',
);
Im facing the same problem, I can't share both image and text in the same time on WhatsApp ( Android ) . any solutions ?
facing same issue here , i just can send image only or text only cant do both together
Any solution ? @mustafa-707 @Djihanegh
Hi all, the share_plus
plugin uses the native activityViewController
method to share media with other apps.
The problem is that the plugin cannot avoid the limits either set by Apple or by the 3rd party apps developers.
For example, the inability to set the subject line on Outlook for iOS is also being reported by those who implement iOS apps using swift directly, e.g. here: https://stackoverflow.com/q/33894713 and they end up doing "hacks" like adding a lot of empty space and similar. Or for example, Whatsapp explicitly forbidding sharing text and image at the same time: https://stackoverflow.com/a/37224091
Moving forward, I'd recommend you to search for "activityViewController" + the name of the app you have problems with on StackOverflow, and see what they discuss there.
Platform
iOS 16
Plugin
share_plus
Version
6.3.2
Flutter SDK
3.7.5
Steps to reproduce
Sharing with Android seems fine but on iPhone we get issues.
1) Before choosing the app to share with I see a message next to the image of Plain Text and 1 Document, rather than the subject or Text
2) With Email - I do not see the subject but get the text as the subject. 3) With WhatsApp I get the Text but not the subject of the image 4) With Airdrop I get a message ... cannot receive all the messages at the same time 5)Instagram I get a something went wrong 6) Messanger I get the image but no text or subject 7) Slack I get the text but no image
Telegram I get the text and the image.
Code Sample
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean