I am using the plugin to share photo and text, however, in the release version of the application sharing does not work.
When I'm using the debug version the sharing works perfectly.
Can someone help me?
void _shareImageAndText() async {
try {
var imageUrl = 'https://www.dropestore.com/img/07717000.jpg';
var imageId = await ImageDownloader.downloadImage(imageUrl);
var path = await ImageDownloader.findPath(imageId);
var mimeType = await ImageDownloader.findMimeType(imageId);
final ByteData bytes = await rootBundle.load(path);
await WcFlutterShare.share(
sharePopupTitle: 'share',
subject: 'Title',
text:
'Body message',
fileName: 'share.jpg',
mimeType: mimeType,
bytesOfFile: bytes.buffer.asUint8List());
} catch (e) {
print('error: $e');
}
}