file_picker_writable
file_picker_writable copied to clipboard
Does not work in Android background tasks
If you try to call readFile from a background task e.g. implemented with flutter_workmanager, it will fail with "Illegal state, expected activity to be there". This is because the plugin assumes that it will have been attached to an activity before being used.
In fact an activity is only required for operations that launch other activities (open file, create file).