We have a very simple Cordova application that downloads all the App's content to the /Documents/ folder. Here we store html, images, css and javascripts. We recently moved to the WKWebview because the old one is deprecated. HTML is read from the documents and appended to the local index file. This all works fine. After this we try to append the script block by setting the src to 'file://.../data/Containers/Application/Documents/test.js' (the file is there). Unfortunately this is not supported, we get the message: Failed to load resource: The operation couldn’t be completed. Operation not permitted We are using the latest Cordova and latest IOS platform.
Does anyone have an idea on how to solve this? It all works fine in the simulator but not on the iPad device.
Many thanks in advance.
Robin