Closed ronbadur closed 10 months ago
Facing the same problem about two weeks or more
i finally solved this issue .. Issue:
Instagram considers image and text caption as multiple images, preventing successful sharing due to an Instagram issue. The original _shareSheet function was designed to share an image with a text caption. To address the problem, it is recommended to modify the function as follows:
Original Function:
_shareSheet(File file) async {
try {
await Share.shareXFiles([XFile(file.path)], text: "Mohamed El-Sayed");
} catch (error) {
return;
}
}
Modified Function:
_shareSheet(File file) async {
try {
await Share.shareXFiles([XFile(file.path)], text: null);
} catch (error) {
return;
}
}
Please read documentation or at least README file before filling bugs. Especially if you mark the checkmark that you have read README in the bug report template like you did here.
It is explained that Meta's apps are not supported properly, so it is not an issue of a package.
The solution of @mohmedelsayed didn't work for me. I'm still having a black screen only when share in Instagram Stories. I already read the docs and is everything right. I noticed that this same error happens when I try to share a photo from the gallery. So I believe the error is with the Instagram app.
The solution of @mohmedelsayed didn't work for me. I'm still having a black screen only when share in Instagram Stories. I already read the docs and is everything right. I noticed that this same error happens when I try to share a photo from the gallery. So I believe the error is with the Instagram app.
Hello I already read all the docs and README too, did everything as said and still having this issue. I'm wondering, have you been getting good results since you reported the problem? Additionally, when you tried to share some photo from the gallery, this error still happening?
I updated the instagram app and the error is gone.
The solution of @mohmedelsayed didn't work for me. I'm still having a black screen only when share in Instagram Stories. I already read the docs and is everything right. I noticed that this same error happens when I try to share a photo from the gallery. So I believe the error is with the Instagram app.
Hello I already read all the docs and README too, did everything as said and still having this issue. I'm wondering, have you been getting good results since you reported the problem? Additionally, when you tried to share some photo from the gallery, this error still happening?
I updated the instagram app and the error is gone. yes after update worked for me thanks
Platform
IOS
Plugin
share_plus
Version
7.2.1
Flutter SDK
3.16.2
Steps to reproduce
Try to share file to instagram stories from IOS and I am getting a black screen, without any error message. share to reels and regular posts worked.
On andorid I can share to all kind of content in instagram including stories.
Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean