Closed Actardnes closed 1 year ago
I see you use a custom WebViewEngine: @ahovakimyan/cordova-plugin-wkwebviewxhrfix@1.0.0 - probably this needs to be reported there.
I removed all plugins, still not working
I back to that and I found a solution.
The problem was in my config.xml
in ios
section. I had the wrong value for CordovaWebViewEngine
.
I had to change: CDVWKWebViewEngine
-> CDVWebViewEngine
.
Old:
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
New:
<feature name="CDVWebViewEngine">
<param name="ios-package" value="CDVWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWebViewEngine" />
Its happening to me with 7.1.0. Even putting the new settings commented by @Actardnes
Bug Report
Problem
window.WkWebView.allowsBackForwardNavigationGestures
called from javascript is not changing webview behaviour specified inconfig.xml
What is expected to happen?
window.WkWebView.allowsBackForwardNavigationGestures(true)
- should enable gestures navigationwindow.WkWebView.allowsBackForwardNavigationGestures(false)
- should disable gestures navigationWhat does actually happen?
Calling
window.WkWebView.allowsBackForwardNavigationGestures
does not change webview behaviour. If in config.xml related flag is set tofalse
callingwindow.WkWebView.allowsBackForwardNavigationGestures(true)
is not enabling gestures navigation. No error occurred.Information
I want to enable gesture navigation only for some pages, but it looks like this settings is taken into an account only during starting app.
Command or Code
Environment, Platform, Device
Experiencing this issue in Ipad & Iphone (ios version 12,13,14)
Version information
Cordova: 10.0.0 Cordova-ios: 6.2.0 XCode: 12.4 Plugins:
[Update] Also not working without plugins
Checklist