Code Monkey home page Code Monkey logo

Comments (17)

troyanskiy avatar troyanskiy commented on August 16, 2024

You should execute:

ionic cordova platform add ios
ionic cordova build ios

from cordova-plugin-wkwebview-engine.

mlynch avatar mlynch commented on August 16, 2024

Works fine on xcode 9/ios 11 simulators. Closing as can't reproduce

from cordova-plugin-wkwebview-engine.

mlynch avatar mlynch commented on August 16, 2024

Yea on second glance it just looks like the build didn't happen so www/index.html wasn't created

from cordova-plugin-wkwebview-engine.

stripathix avatar stripathix commented on August 16, 2024

@mlynch I am not able to run the app on the simulator. Using xCode9 and iOS11. It showed build succeeded :-( .

screen shot 2017-09-22 at 5 03 18 pm

screen shot 2017-09-22 at 5 03 32 pm

from cordova-plugin-wkwebview-engine.

troyanskiy avatar troyanskiy commented on August 16, 2024

@stripathix what exact command did you execute to build?

from cordova-plugin-wkwebview-engine.

stripathix avatar stripathix commented on August 16, 2024

I am using:

cordova platform add ios
cordova build ios

Because my project is Cordova directory. Whenever I run ionic cordova build ios command I get error [ERROR] Sorry! ionic cordova build can only be run in an Ionic project directory.

screen shot 2017-09-22 at 5 20 15 pm

from cordova-plugin-wkwebview-engine.

troyanskiy avatar troyanskiy commented on August 16, 2024

So you can't use the plugin cordova-plugin-wkwebview-engine from Ionic-team.
There are 2 options for you.

  1. Switch you project to ionic project
  2. Use the plugin from apache https://github.com/apache/cordova-plugin-wkwebview-engine

from cordova-plugin-wkwebview-engine.

troyanskiy avatar troyanskiy commented on August 16, 2024

By executing just cordova build ios it just copies files from www folder to the platform and adding cordova.js + plugin js files.
And if you do ionic cordova build ios ionic compiles everything from src to www and then executes cordova build ios

from cordova-plugin-wkwebview-engine.

stripathix avatar stripathix commented on August 16, 2024

But still, don't understand why it works on a real device but not on simulator.

Is there any difference in WkWebview plugin from ionic team and plugin by apache? Will it affect performance wise?

Will it be the big task to convert Cordova project directory to ionic directory?

from cordova-plugin-wkwebview-engine.

troyanskiy avatar troyanskiy commented on August 16, 2024

Is there any difference in WkWebview plugin from ionic team and plugin by apache? Will it affect performance wise?

No difference in performance

Will it be the big task to convert Cordova project directory to ionic directory?

Depends on your project

I think its easier to switch to the plugin from apache.

from cordova-plugin-wkwebview-engine.

stripathix avatar stripathix commented on August 16, 2024

thanks @troyanskiy I will work on that and get back if face any issue.

from cordova-plugin-wkwebview-engine.

mlynch avatar mlynch commented on August 16, 2024

This should work, are you sure there's a www/index.html?

from cordova-plugin-wkwebview-engine.

stripathix avatar stripathix commented on August 16, 2024

Yes, there is an index.html file once build is completed platforms/ios/www/index.html

screen shot 2017-09-22 at 6 20 10 pm

screen shot 2017-09-22 at 6 20 22 pm

from cordova-plugin-wkwebview-engine.

stripathix avatar stripathix commented on August 16, 2024

Also, I can confirm this was working with the following environment:

a) Xcode 8.x
b) iOS 10.x
c) Plugin version: git+https://github.com/driftyco/cordova-plugin-wkwebview-engine.git#8409dbb

Now when I have updated to Xcode 9 and using the latest version of the plugin it's breaking in the simulator.

from cordova-plugin-wkwebview-engine.

manucorporat avatar manucorporat commented on August 16, 2024

I can't reproduce this issue. Can you try:

rm -rf plaftorms
rm -rf plugins
ionic cordova build ios

?

from cordova-plugin-wkwebview-engine.

kgeoir avatar kgeoir commented on August 16, 2024

Hello,
I am using Xcode 9 and IOS11, when I plug the wkwebview plugin, the browser is enable to load index.html.
screen shot 2017-09-26 at 9 50 54 am
I did rm -rf platform and plugin then build and still breaking. On my side it breaks on Xcode simulator and device BUT works perfectly when launching with cordova!
Any hint?

from cordova-plugin-wkwebview-engine.

stripathix avatar stripathix commented on August 16, 2024

Finally, I found the reason for this. I think its the PORT localhost:8080 on which application is served inside WkWebView.

I am having a docker node container running, listening on 8080. So if I stop my docker container then application starts working on the simulator.

Is there any way to handle this situation. Like if we can change the PORT# for WkWebView?

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.