Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ BUG ] : shareToSystem on iOS if clicking on Instagram get error multiple photos not allowed #321

Open
riccardo-rusca opened this issue Nov 5, 2024 · 1 comment
Assignees

Comments

@riccardo-rusca
Copy link

Plugin name
Appinio social share 0.3.2

Describe the bug
When trying to share a single photo to Instagram via default system share sheet, I get an error saying that it is not possible to share multiple photos and video on Instagram.

To Reproduce
Steps to reproduce the behavior:
final pngBytes = ...
final directory = await getApplicationDocumentsDirectory();
final path = directory.path;
File file = File('$path/image');
await file.writeAsBytes(pngBytes);
await appinioSocialShare.iOS.shareToSystem(
'Check my image!', filePaths: [file.path],
);

Expected behavior
Be able to share a single image to Instagram as I can do from any photo, without any text

Screenshots
IMG_5F13F053B9D9-1

Desktop (please complete the following information):

  • OS: iOS 18.1

Smartphone (please complete the following information):

  • Device: iPhone 14 Pro
  • OS: iOS 18.1
@riccardo-rusca
Copy link
Author

If someone is interested I changed the behavior here: https://github.com/riccardo-rusca/flutter_social_share.git
Now there are two functions for iOS:

  1. Future shareToSystem(String message, String? filePath)
  2. Future shareFilesToSystem({List? filePaths})

The first one fix the Instagram bug, allowing to share just a single image. the old behavior is implemented in the second function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants