Open ysnklcky opened 4 years ago
Hello, I am testing my fluttter application with my android 10 device. I try to share an image from network image. But in android 10 devices can not share image into instagram feed. But i can share into instagram story.. whats the difference ?
If anyone test this case in Android 10..
I am using below code
void onShareImage(String url) async { var request = await HttpClient().getUrl(Uri.parse(url)); var response = await request.close(); Uint8List bytes = await consolidateHttpClientResponseBytes(response); await Share.file('myImage', 'myImage.jpg', bytes, 'image/jpg'); }
This share method works with well at all social networks. But instagram feed and messenger story can not share image..
I also got an error
Hello, I am testing my fluttter application with my android 10 device. I try to share an image from network image. But in android 10 devices can not share image into instagram feed. But i can share into instagram story.. whats the difference ?
If anyone test this case in Android 10..
I am using below code
void onShareImage(String url) async { var request = await HttpClient().getUrl(Uri.parse(url)); var response = await request.close(); Uint8List bytes = await consolidateHttpClientResponseBytes(response); await Share.file('myImage', 'myImage.jpg', bytes, 'image/jpg'); }
This share method works with well at all social networks. But instagram feed and messenger story can not share image..