Lindsay-Needs-Sleep opened a new issue #349: (ios) Can't navigate from https:// 
to cdvfile://
URL: https://github.com/apache/cordova-plugin-file/issues/349
 
 
   # Bug Report
   When on an https:// page you can't navigate to a cdvfile url.
   
   ### What is expected to happen?
   Can navigate to cdvfile:// urls.  (This works on Android.)
   (Preferably without having to whitelist cdvfile://.  Also don't have to do 
that on Android.)
   
   ### What does actually happen?
   If you have cdvfile:// whitelisted:
   ```
   2019-08-19 12:17:52.265699-0600 [29175:8991235] Received a navigation start 
notification.
   2019-08-19 12:17:52.270295-0600 [29175:8991235] Failed to load webpage with 
error: unsupported URL
   2019-08-19 12:17:52.270507-0600 [29175:8991235] Failed to load webpage with 
error: unsupported URL
   2019-08-19 12:17:52.270820-0600 [29175:8991235] Received a navigation 
failure notification. error: Error Domain=NSURLErrorDomain Code=-1002 
"unsupported URL" 
UserInfo={NSErrorFailingURLStringKey=cdvfile://localhost/bundle/www/backpack/backpack.html,
 NSErrorFailingURLKey=cdvfile://localhost/bundle/www/backpack/backpack.html, 
NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x17e64cb0 {Error 
Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, 
_WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x17eb5d50>}
   ```
   If you don't have cdvfile:// whitelisted:
   It stops at the whitelist check.  (don't have the specific error on hand)
   
   
   ## Information
   I believe this requires a solution similar to (or in addition to) the 
solution @guylando wrote in pull request #296 
   
   
   
   ### Command or Code
   `window.location.href = 
"cdvfile://localhost/bundle/www/backpack/backpack.html";` fails
   `window.open("cdvfile://localhost/bundle/www/backpack/backpack.html");` fails
   
   
   ### Version information
   Cordova 9.0.0
   cordova-ios 4.5.5
   ios 10.3.4
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
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]


With regards,
Apache Git Services

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

Reply via email to