Giter Site home page Giter Site logo

Comments (7)

RonaldPK avatar RonaldPK commented on May 12, 2024 2

(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.

janpio avatar janpio commented on May 12, 2024

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.

vespino avatar vespino commented on May 12, 2024

I'm using Phonegap Build with iOS 4.5.4 and the latest version of wkwebview.

from cordova-plugin-wkwebview-engine.

BradCB avatar BradCB commented on May 12, 2024

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
$(":mobile-pagecontainer").pagecontainer("change", $("#signinpage")); will not work anymore.

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.

JamalAPI avatar JamalAPI commented on May 12, 2024

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.

flojug avatar flojug commented on May 12, 2024

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.

jcesarmobile avatar jcesarmobile commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.