-
Notifications
You must be signed in to change notification settings - Fork 69
Cordova WKWebVIew plugin does not work on simulator #177
Comments
You should execute:
|
Works fine on xcode 9/ios 11 simulators. Closing as can't reproduce |
Yea on second glance it just looks like the build didn't happen so www/index.html wasn't created |
@mlynch I am not able to run the app on the simulator. Using xCode9 and iOS11. It showed build succeeded :-( . |
@stripathix what exact command did you execute to build? |
So you can't use the plugin
|
By executing just |
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? |
No difference in performance
Depends on your project I think its easier to switch to the plugin from apache. |
thanks @troyanskiy I will work on that and get back if face any issue. |
This should work, are you sure there's a |
Also, I can confirm this was working with the following environment: a) Xcode 8.x Now when I have updated to Xcode 9 and using the latest version of the plugin it's breaking in the simulator. |
I can't reproduce this issue. Can you try:
? |
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? |
Created a new project using Cordova commands:
cordova create testapp
Then added following lines in config.xml to install cordova-plugin-wkwebview-engine:
Then Executed:
Now if I run this application on simulator then I get this screen:
*Note: This works on real devices but on the simulator it always fails. No Idea what's going on.
Ref: https://github.com/ionic-team/cordova-plugin-wkwebview-engine
cordova: 7.0.1 cordova-ios: 4.4.0
The text was updated successfully, but these errors were encountered: