Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4086

Add option for "Cancelable" to InAppBrowser on Android

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 2.8.0
    • None
    • None
    • Android

    Description

      Currently, the InAppBrowser plugin, when instructed to create a browser with the '_blank' option, will always call dialog.setCancelable(true); on the child browser view. This allows the user to dismiss the in-app browser with the hardware back button.

      There are cases where the host application does not want the user to be able to dismiss the child browser without explicit action being performed within it. In these cases, it would be great to have an option available when invoking the browser from JS to set this value to false. This could either be a separate option, or it could use the same value as "location". Since removing the location bar removes the user's ability to manually dismiss this view on all other platforms, it is reasonable to assume it should remove the hardware back button functionality as well.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ngenereux Neale Genereux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: