Comments (7)
(I found this unclosed issue while searching for a similar one. Maybe my solution will help other searchers)
links won't open and all show "Error loading page" suggests that you're trying to load pages from separate local files into the main index.html
, using jQM's Ajax method. However, the WkWebView plugin does not allow for loading files over the file:// protocol with Ajax.
There is a separate plugin that solves that problem: cordova-plugin-wkwebview-file-xhr
(link)
Next issue you may run into, after installing the xhr plugin, is errors like "Blocked attempt to use history.replaceState() to change session history URL from .. to ..". I solved that by setting jQM's pushStateEnabled
to false
(documentation).
from cordova-plugin-wkwebview-engine.
Does your jQuery Mobile project work in Safari?
What are all the versions you are using (Cordova CLI, Cordova iOS, Plugin version)?
from cordova-plugin-wkwebview-engine.
I'm using Phonegap Build with iOS 4.5.4 and the latest version of wkwebview.
from cordova-plugin-wkwebview-engine.
I am also having issues. My app will do the splash screen then go to a white screen. I can debug with safari and see that none of the page changing is working.
Everything was working when I was using UIWebView.
I'm using
Cordova ios 5.1.1
Cordova-plugin-wkwebview-engine 1.2.1
Cordova-plugin-wkwebview-file-xhr 2.1.4
jquery.mobile-1.5.0-alpha.1
jquery-3.4.1.min
Cordova-plugin-inappbrowser 3.2.0
Jquery mobile was working fine without this plugin but I need it cause Apple will stop accepting apps that don't use WKWebView.
My app will not load images from any folder under the app directory and functions like
UPDATE:
Adding https://github.com/apache/cordova-plugins/blob/wkwebview-engine-localhost/README.md and the other requirements detailed on the git readme seemed to work.
Loads page normally now. Will need to further test to see if this a full solution.
from cordova-plugin-wkwebview-engine.
jquery.mobile-1.5.0-alpha.1 is probably the last version to be released. There is absolutely no activity in its development; see https://jqueryui-dev.slack.com (you need to create an account to access it).
I know this would be time consuming and would require lots of code changes, but I suggest you migrate to either OnsenUI or Ionic framework.
from cordova-plugin-wkwebview-engine.
Same problem here : splash screen then the app blocks on $(':mobile-pagecontainer').pagecontainer("change", ...)
With https://github.com/apache/cordova-plugins/blob/wkwebview-engine-localhost/README.md, everything seems to work fine :
$ cordova plugin add https://github.com/apache/cordova-plugins.git#wkwebview-engine-localhost
from cordova-plugin-wkwebview-engine.
this is a known WKWebView issue, you can use https://github.com/oracle/cordova-plugin-wkwebview-file-xhr to fix the problem, or move to cordova-ios 6 and use a custom scheme
from cordova-plugin-wkwebview-engine.
Related Issues (20)
- Cookie with WKWebView are not persistent HOT 4
- Not able to see the first page of my app. HOT 16
- Confirming cordova-ios version HOT 2
- installing plugin results in MyApplication platform being installed HOT 4
- Problems during migration from UIWEBVIEW to WKWEBVIEW HOT 5
- ios 13.6 and the new wkwebview engine HOT 2
- Ionic Cordova - iOS 12 and 13 pushing footer buttons beyond safe area HOT 1
- height 100% not correct on iPhone X. goes away after rotating? HOT 23
- Open an html file from unzipped file throwing Received an unexpected URL from the web process|WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox HOT 1
- Freezing application when add this plugin HOT 1
- postMessage() in WKWebView HOT 1
- Ignoring request to load this main resource because it is outside the sandbox HOT 2
- Fail to compile CDVWKWebViewEngine.o to CDVWKWebViewEngine.m normal arm64 objective-c HOT 2
- "Take Photo or Video" causes app to crash HOT 2
- RBSAssertionErrorDomain, file picker HOT 1
- The sandbox is not in sync with the podfile.lock run pod install or update cocoapods installation - ionic v5 ios HOT 1
- Fixed header/nav bar flickering on keyboard pop up due to webview resize HOT 2
- M1 Macbook cant build ios app with WKWebView HOT 3
- v1.2.2 update needs to be synced to npm (currently v1.2.1) HOT 1
- Cannot set base64 image on WKWebview using evaluateJavascript method iOS platform HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-wkwebview-engine.