Hey,
i want to display a Picture in my App, but when im Using Filesystem.stat() or Filesystem.readFile() at the Path “file:///var/mobile/Media/PhotoData/CPLAssets/group457/E8DF440A-4705-4DB2-80A5-5786DAE01A98.JPG” im Getting this Error
Error: The file “E8DF440A-4705-4DB2-80A5-5786DAE01A98.JPG” couldn’t be opened because you don’t have permission to view it.
Is ist possible to Request the needed Permissions?
Since now I got Photo Library Additions and Photo Library Usage Permissions.
I hope someone could help me.
Is this cordova or capacitor? Can you post some code of what you’ve done to get the file path?
Its in Capacitor. I just try to solve some bigger Problem. For that I use a native Swift App, in this App I got the Path with some native Apple Code.
I’m hitting the same issue.
When requesting a video using Capacitors Filesystem.readFile
iOS returns “The file … couldn’t be opened because you don’t have permission”
Filesystem.readFile({ path })
There isn’t an option to ask for this in capacitors Permission plugin, I have also tried adding these into the plist
Did you find a solution?