GitToTheHub commented on issue #394:
URL: 
https://github.com/apache/cordova-plugin-file/issues/394#issuecomment-647614110


   Just for sharing my experiences with cordova-ios 6.0.0 and 
WKURLSchemeHandler:
   
   After setting my own scheme and hostname in config.xml to `app `& 
`localhost`, the javascript `window.location` returns `app://localhost` and 
`document.currentScript.src` the same `app://localhost/..` , but 
`cordova.file.applicationDirectory` returns a file-url.
   
   However, if I try to resolve the file-URL it's functioning. I tested it a 
lot with different file-URLS (files and directories) and everything was good. I 
only didn't tested it with `cordova.file.dataDirectory`, only with 
`cordova.file.applicationDirectory`, but I think it should work either.
   
   The error is more, when you try to resolve an `app://localhost`-URL with 
`resolveLocalFileSystemURL`, this does not work you get an `ENCODING_ERR`. But 
vice-versa, if you try to add programatically with javascript on your current 
html document a `script`- or `link`-element with a file-url, this doesn't work. 
Even worse, the onload, or onerror-method is never called on your element (this 
is definetly an error!). But you can load your files with `app://localhost` in 
your document with a script- or link-element, this works.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to