-
Notifications
You must be signed in to change notification settings - Fork 467
Updates do not auto-install: loadURL
does not work correctly with cordova-plugin-wkwebview-engine
#140
Comments
Tried your setup with different emulators and on real device - works fine. Can you provide step-by-step guide on how to reproduce it? This is how I did it:
|
Thanks for your help. I have some interesting results.
In summary, there may be an issue with my version of For now I can continue to deploy manually from XCode. |
Thank you for investigation.
Probably that's why I missed it: I was running app on the device from Xcode, not console. I use Currently I'm using |
I have this problem, too. And for me it did not work building it with XCode
It's with the WKWebview plugin installed (cordova-plugin-wkwebview-engine). What's wrong there? |
@eneskaya tried to reproduce it and couldn't . Again, can you give me a step-by-step on how to get the same error? |
It's hard to give you a step by step reproduction, it's just that I installed the plugin and used it 😄 Of course with WKWebView installed |
@eneskaya I do love bugs that I can't reproduce :) Okey, let's try another approach.
If not - go to |
Alright, I will check it and report back :) thanks so far Edit: I don't know if this is relevant, but I'm using an nginx server to serve the new files and the cordova-hot-code-push-local-dev-addon is not installed |
I also have this issue with
My steps to reproduce:
The result:
It looks like #85 still isn't resolved for this scenario... |
Mache WKWebView can't handle the double slashes? It's like ...www//index.html but rather should be www/index.html
|
@alexbuijs okey, will check it out, thanks. |
@eneskaya no, that should not be the problem: WKWebView should handle double slashes. |
@nikDemyankov Just a guess. Debugging this problem seems really hard, what steps do you take? Would be interesting to know. |
Just to reiterate, the update process works fine for me when I deploy to the device using Xcode. Is this the case with you as well @alexbuijs? |
Sorry, been swamped with my main work... @eneskaya well, previously the problem with WKWebView was in it's security policy. Right now for each release plugin creates a separate folder. And when it is installed - plugin reloads webview to the index page in the new folder. And WKWebView restricts that: if you started to display content from folder Also, since not everyone is using WKWebView - I added a JS hook that sets a preprocess macro |
@gareth-ferneyhough I checked, and it indeed works when I deploy through XCode instead of via Cordova CLI. In both instances the WK_WEBVIEW_ENGINE_IS_USED variable is set to 1, though. |
I can confirm this. Just started using Cordova and this plugin today. IOS with wkwebview auto-updates without needing restarting the app when launched from XCode, but when launched via |
I will try to take a look this week, probably by comparing the two app containers after they have been installed via XCode and iOSDeploy. |
👋 Hi! Thank you for your interest in this repo. 😢 We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork. 🔒 This will now be closed & locked. ℹ️ Please see #371 for more information. |
Love the plugin. However, it seems that
loadURL
inHCPPlugin.m
does not reload the page when I have thecordova-plugin-wkwebview-engine
plugin installed. I do not get any errors after installation, but I must restart the app before I see any changes to index.html.If I remove
cordova-plugin-wkwebview-engine
and rely onUIWebView
, everything works as expected and the page is refreshed after chcp update installation.This is occurring during the local development workflow.
My versions:
cordova-hot-code-push-local-dev-addon
0.1.2cordova-hot-code-push-plugin
1.3.1cordova-plugin-wkwebview-engine
1.0.3ios platform
4.0.1The text was updated successfully, but these errors were encountered: