You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/04/24 17:55:24 UTC

[GitHub] [cordova-plugin-inappbrowser] FBNitro opened a new issue #466: Android Disable Back Button Option

FBNitro opened a new issue #466: Android Disable Back Button Option
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/466
 
 
   # Feature Request
   Option to disable the Android hardware back button functionality.
   
   ## Motivation Behind Feature
   I have an app in which I have disabled the back button.  I use keycloak-js as my authentication mechanism.  When the user starts the authentication process, keycloak-js spawns the inappbrowser.  I do not want the user to be able to hit the back button once the inappbrowser has opened.
   
   On iOS, setting "toolbar: no" makes it impossible to go back, but on Android because of the current "harwareback" implementation, this is not possible.
   
   The "hardwareback" option currently allows back to either go back, or close the inappbrowser, neither option are equivalent to the iOS setup where I cannot go back.
   
   ## Feature Description
   Add a new android option for hardwarebackdisabled: yes/no, defaults to no.  I suggest a new option since changing the hardwareback would break compatibility, 
   
   ## Alternatives or Workarounds
   I have no workarounds at this time.
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

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