-
Notifications
You must be signed in to change notification settings - Fork 375
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
on android, handle file received from intent action_view #146
base: master
Are you sure you want to change the base?
on android, handle file received from intent action_view #146
Conversation
intent.action.VIEW is handled in package as url type. When user try open a file, android system send the uri of this file to intent. if you need open file with dart:io functions like readAdBytes or readAsString, you should convert the Uri to full path. You can do this with uri_to_file package. So, you can handle action.VIEW with this code in flutter side:
|
This won't work for all files as you'll get permission issues, this plugin should still be able to send the content set when adding the intent extra "EXTRA_STREAM". |
This pull request, looks very promising as I am facing the same issue. Can it get merged? |
Can this branch get merged? |
doesn't look like this repo is maintained anymore. Soon there will be more forks than stars 😢 |
On Android this allows to receive media also from the intent action_view.
Example use case : clic on an email attachment to open it with our app