Open Ruwasoft opened 1 year ago
I have the same problem, Every time need to request for getDirectoryPermission other wise it's return null file list.
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.
@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.
@yashLadha > have you found any solution? I am facing same problem!
@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
I used this package to read the files inside folder. Its working fine. But after few days, Its returning null value.