You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'd like to share PDF files with another apps (both on Android and iOS).
Could you give me an example to use Share.file(path: <String>, mimeType: ShareType, title: , text: );?
These files are in app's download directory.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Currently only Android is working for file sharing.
You'll need to use a documents picker and, upon selection of the document, you'll receive it's path, which you can then use to the Share.file() constructor, the mimeType should be set to ShareType.TYPE_FILE, title and text are optional.
Forewarning, @pablote discovered an issue with permissions which might affect you once you are finally able to share the file.
Hello,
I'd like to share PDF files with another apps (both on Android and iOS).
Could you give me an example to use
Share.file(path: <String>, mimeType: ShareType, title: , text: );
?These files are in app's download directory.
Thanks in advance!
The text was updated successfully, but these errors were encountered: