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

cordova-inappbrowser-plugin setDefaultOptions method

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.5.0
    • Fix Version/s: Master
    • Component/s: cordova-lib
    • Labels:
    • Environment:

      IOS/Android

      Description

      While using cordova-inappbrowser-plugin I must set popup features only when calling window.open method. But a lot of libraries (firebase, openFB) use window.open inside their own code where I can't directly menage the features of window to be opened, and on IOS, where we do not a have a 'back' button we could have a problem. For example window, opened with 'toolbar=no' will make app to stack with no ability to close the window. Another thing to be mentioned is when on IOS you use <video inline> attribute, after opening a new window without setting 'allowInlineMediaPlayback=yes' all inline attributes will stop working properly and video will start to open in a fullscreen mode.

      So, my proposal is to provide an ability to setDefaultOptions method that will help to prevent external libraries to manage the options of of window to be opened directly.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Ivan Prodaiko Ivan Prodaiko
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: