I have an application that has a local Javascript file as a resource. I am also running a node.js server on the device. I need the Javascript to be able to read a file that is in the Documents directory of the app. I know that the file url is dynamic and I can provide that to JS at runtime. My question is whether it's possible for JS to read a file directly from the iOS directory or is this walled off for security reasons? When trying I have gotten errors such as
I know libraries like Cordova can access files but I wonder if that is through native libraries that provide the file to JS in other ways.
The short of it is to understand if providing a local url to Javascript will allow it to access the file system or again if this is forbidden?
Code Block [connection] nw_socket_handle_socket_event [C2.1:2] Socket SO_ERROR [61: Connection refused]
I know libraries like Cordova can access files but I wonder if that is through native libraries that provide the file to JS in other ways.
The short of it is to understand if providing a local url to Javascript will allow it to access the file system or again if this is forbidden?