ivehement / saf

Flutter plugin that leverages Storage Access Framework (SAF) API to get access and perform the operations on files and folders.
https://pub.dev/packages/saf
MIT License
17 stars 17 forks source link

Return null value after few Days #17

Open Ruwasoft opened 1 year ago

Ruwasoft commented 1 year ago

I used this package to read the files inside folder. Its working fine. But after few days, Its returning null value.

JasminScalelot commented 1 year ago

I have the same problem, Every time need to request for getDirectoryPermission other wise it's return null file list.

AMuellerAtAHS commented 1 year ago

Maybe this is a limitation of platform specific Storage Access Framework. The thing is, that the user should always grant the permission, when the app needs it. So that the app couldn't do any mystical stuff in the background.

yashLadha commented 1 year ago

@AMuellerAtAHS is correct, it might be due to permission denial error in log of the application. We might need a way to refresh the permission elegantly. I am searching if there is a workaround.

HussnulMaab192 commented 1 year ago

@yashLadha > have you found any solution? I am facing same problem!

AnkitFlutterDev commented 10 months ago

@AMuellerAtAHS i dont think this is a limitation of platform specific Storage Access Framework,cuz i have tried shared_storage plugin in my demo project,and there no need to allow permission every time even with Restart.

Please clarify this. https://pub.dev/packages/shared_storage