breautek commented on PR #642: URL: https://github.com/apache/cordova-plugin-file/pull/642#issuecomment-2675311041
> I think this change should have been merged in 9.0.0, as it change the behaviour of .toURL() and is breaking in code using the returned value to access files and directories in native code that was expecting file:// urls `.toURL()` was normalized to return a URI compatible with the DOM since v7. If I recall my history correctly, previous versions always returned `file://` because the concept of app schemes didn't exists, so naturally it's understandable that some people might have used `.toURL()` for non-DOM related APIs, but that practice was discouraged since v7, which was when Android was updated to return the app-hosted schema uri when applicable. iOS simply failed to follow suite. If you want to guarantee a local uri, then I believe it's the `.fullPath` property, which should guarantee `file://` on iOS. Android it may be `file://` or `content://` depending on the underlying resource location. -- 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. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org