You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/05/08 11:56:50 UTC
[GitHub] [cordova-plugin-inappbrowser] dpalou opened a new pull request #693: fix(ios): Allow loading local files with WKWebView
dpalou opened a new pull request #693:
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/693
### Platforms affected
iOS
### Motivation and Context
Opening a local HTML file with InAppBrowser and UIWebView works fine, but the same code with WKWebView throws an error:
> webView:didFailProvisionalNavigation - 1: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 1.)
This Pull request is meant to fix that. I'm not an iOS developer, so I'm not sure if the _allowingReadAccessToURL_ param should be more flexible or even configurable by options, but the change seemed to work in my case.
I tried opening an issue in the tracker, but I couldn't select the Apache Cordova project when creating the issue, I guess I lack some permissions.
### Description
I read that in WKWebView the function to load files is _loadFileURL_ instead of _loadRequest_, so I'm using that function if the URL scheme is "file".
### Testing
I've executed "npm run tests" and no error was displayed (no success message either, so I'm not 100% sure it worked).
I've tested this in our project but with the 3.2.0 version instead of master branch, so this should have a more intensive testing.
### Checklist
- [X] I've run the tests to see all new and existing tests pass
- [ ] I added automated test coverage as appropriate for this change
- [X] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`)
- [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
- [ ] I've updated the documentation if necessary
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-inappbrowser] guycalledseven commented on pull request #693: fix(ios): Allow loading local html files
Posted by GitBox <gi...@apache.org>.
guycalledseven commented on pull request #693:
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/693#issuecomment-689726162
I've created pull request for this pull request that addresses additional limitations imposed to loading of local storage on iOS.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-inappbrowser] dpalou commented on pull request #693: fix(ios): Allow loading local files with WKWebView
Posted by GitBox <gi...@apache.org>.
dpalou commented on pull request #693:
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/693#issuecomment-626621719
Hi jcesarmobile,
I created this project for you:
https://github.com/dpalou/iab-file-error
I included the node_modules and plugins in there, but not the platform. Just add the iOS platform, run the app and click the "Click me" button. I got the same error I described in the Pull Request, you can see the error in the Xcode console.
Thanks!
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-inappbrowser] jcesarmobile merged pull request #693: fix(ios): Allow loading local html files
Posted by GitBox <gi...@apache.org>.
jcesarmobile merged pull request #693:
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/693
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-inappbrowser] jcesarmobile commented on pull request #693: fix(ios): Allow loading local files with WKWebView
Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on pull request #693:
URL: https://github.com/apache/cordova-plugin-inappbrowser/pull/693#issuecomment-626163374
We use github issues now instead of JIRA, that's why you couldn't report the problem there.
Can you provide a sample app where the issue can be reproduced? I've tried loading a photo from file url and worked fine with existing code.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org