open_file
open_file copied to clipboard
Android 13 tries to open file internally, resulting error
When I try to open a local file await OpenFile.open(path)
, the phone tries to open the file internally from the Flutter app, so to speak. And it results in an error with message "Unable to perform request".
If I install an additional app for this type of file (PDF Viewer), when I try to open the file, it prompts the app selector "open with" tab. Then, there is no problem to select the app and open it. The problem is when an user doesn't have a third party app, thus not being able to open the file.
The shortaround would be forcing the device to open the file with an external app (Google Drive PDF Reader for example).
the same here