Actardnes opened a new issue #1091:
URL: https://github.com/apache/cordova-ios/issues/1091


   # Bug Report
   
   ## Problem
   `window.WkWebView.allowsBackForwardNavigationGestures` called from 
javascript is not changing webview behaviour specified in `config.xml`
   
   ### What is expected to happen?
   `window.WkWebView.allowsBackForwardNavigationGestures(true)` - should enable 
gestures navigation
   `window.WkWebView.allowsBackForwardNavigationGestures(false)` - should 
disable gestures navigation
   
   
   ### What does actually happen?
   Calling `window.WkWebView.allowsBackForwardNavigationGestures` does not 
change webview behaviour.
    If in config.xml related flag is set to `false` calling 
`window.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
   ```js
   // routing.js
   if(routeWithBackNavigation){
       window.WkWebView.allowsBackForwardNavigationGestures(true);
   } else{
       window.WkWebView.allowsBackForwardNavigationGestures(false);
   }
   ```
   
   
   
   ### 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:
   - @ahovakimyan/[email protected]
   - [email protected]
   - [email protected]
   
   ## Checklist
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to