Comments (17)
You should execute:
ionic cordova platform add ios
ionic cordova build ios
from cordova-plugin-wkwebview-engine.
Works fine on xcode 9/ios 11 simulators. Closing as can't reproduce
from cordova-plugin-wkwebview-engine.
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.
@mlynch I am not able to run the app on the simulator. Using xCode9 and iOS11. It showed build succeeded :-( .
from cordova-plugin-wkwebview-engine.
@stripathix what exact command did you execute to build?
from cordova-plugin-wkwebview-engine.
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.
from cordova-plugin-wkwebview-engine.
So you can't use the plugin cordova-plugin-wkwebview-engine
from Ionic-team
.
There are 2 options for you.
- Switch you project to ionic project
- Use the plugin from
apache
https://github.com/apache/cordova-plugin-wkwebview-engine
from cordova-plugin-wkwebview-engine.
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.
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.
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.
thanks @troyanskiy I will work on that and get back if face any issue.
from cordova-plugin-wkwebview-engine.
This should work, are you sure there's a www/index.html
?
from cordova-plugin-wkwebview-engine.
Yes, there is an index.html file once build is completed platforms/ios/www/index.html
from cordova-plugin-wkwebview-engine.
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.
I can't reproduce this issue. Can you try:
rm -rf plaftorms
rm -rf plugins
ionic cordova build ios
?
from cordova-plugin-wkwebview-engine.
Hello,
I am using Xcode 9 and IOS11, when I plug the wkwebview plugin, the browser is enable to load index.html.
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.
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)
- Does Ionic Team supports the plugin? HOT 1
- errors building 1.1.4-dev HOT 1
- Scroll starts ~10px off HOT 2
- Backport "navigation by gestures" (or rebase project on upstream master) HOT 1
- Latest Commit breaks 10 of your production builds - nothing short of a catastrophy HOT 3
- config.xml for wkwebview only working for https link not for spec version HOT 1
- White screen when doing some task for long time. [ProcessSuspension] HOT 2
- iPhone X iOS11 window size
- iOS 11 crash/white screen when in background HOT 4
- Failed to load webpage with error: The network connection was lost. HOT 3
- html5 audio play from cache in iOS 11
- Http failure response for (unknown url): 0 Unknown Error HOT 1
- Gamepad Api's (IOS 11)
- Error if I put app to pause while it is still bootstrapping
- image showing problem PluginKit code 13 HOT 3
- some code is hidden in safari debugger
- app can't load cookies after first install
- Keyboard Overlaying Input Fields
- Cookies from an iframe are not stored
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.