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

(ios) Present notification view controller by inappbrowser view controller

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • cordova-ios 4.5.0
    • None
    • cordova-plugin-dialogs
    • IOS 10 and 11

    Description

      When inappbrowser window is shown, if main uiwebview or wkwebview calls cordova Dialog plugin method to show the dialog view, the dialog should show to user on top of the inappbrowser view controller.

      However, currently the dialog view is shown behind the inappbrowser view, so user cannot see it or click button on the dialog

      An similar issue was reported for barcode scanner plugin at
      https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/570

      The issue can be repeated with the below method
      function confirm(){
      var win = window.open( "https://www.google.com", "_blank" );
      win.addEventListener( "loadstop", function() {
      setTimeout(function() {
      function onConfirm(buttonIndex)

      { console.log('You selected button ' + buttonIndex); }

      navigator.notification.confirm(
      'You are the winner!', // message
      onConfirm, // callback to invoke with index of button pressed
      'Game Over', // title
      ['Restart','Exit'] // buttonLabels
      );
      }, 1000 );
      });
      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jonathanli Jonathan Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: