You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/03/16 15:59:00 UTC

[GitHub] [cordova-ios] Actardnes opened a new issue #1091: Cannot change 'allowsBackForwardNavigationGestures' from javascript

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/cordova-plugin-wkwebviewxhrfix@1.0.0
   - cordova-plugin-sign-in-with-apple@0.1.2
   - cordova-plugin-wkkeyboardfix@1.1.0
   
   ## 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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] timbru31 commented on issue #1091: Cannot change 'allowsBackForwardNavigationGestures' from javascript

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #1091:
URL: https://github.com/apache/cordova-ios/issues/1091#issuecomment-800395631


   I see you use a custom WebViewEngine: @ahovakimyan/cordova-plugin-wkwebviewxhrfix@1.0.0 - probably this needs to be reported there.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] Actardnes commented on issue #1091: Cannot change 'allowsBackForwardNavigationGestures' from javascript

Posted by GitBox <gi...@apache.org>.
Actardnes commented on issue #1091:
URL: https://github.com/apache/cordova-ios/issues/1091#issuecomment-800880417


   I removed all plugins, still not working


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org