KuschL opened a new issue #675:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/675


   # Bug Report
   
   
   ## Problem
   Open the InAppBrowser with target "_blank" in an Ionic app on iOS is not 
working.
   
   I tried the code below in a new Ionic project and can reproduce the issue.
   
   ### What is expected to happen?
   The InAppBrowser should open in a new view and show the given website.
   
   ### What does actually happen?
   The InAppBrowser opens in a new view and don't do anything.
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   The problem seems to be new, because we could build a working app last week 
(2020/04/14).
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   ```typescript
   
   //page.ts
   import {Component} from '@angular/core';
   import {InAppBrowser} from "@ionic-native/in-app-browser/ngx";
   
   @Component({
       selector: 'app-page',
       templateUrl: './page.html',
       styleUrls: ['./page.scss'],
   })
   export class Page {
       public folder: string;
   
       constructor(private iab: InAppBrowser) {}
   
       openBrowser() {
           const browser = 
this.iab.create('https://ionicframework.com/docs/components', '_blank')
   
           browser.on('beforeload').subscribe((e) => {
               console.log('beforeload', e)
           })
   
           browser.on('loadstart').subscribe((e) => {
               console.log('loadstart', e)
           })
   
           browser.on('loaderror').subscribe((e) => {
               console.log('loaderror', e)
           })
   
           browser.on('customscheme').subscribe((e) => {
               console.log('customscheme', e)
           })
   
           browser.on('loadstop').subscribe((e) => {
               console.log('loadstop', e)
           })
   
           browser.on('message').subscribe((e) => {
               console.log('message', e)
           })
   
           browser.on('exit').subscribe((e) => {
               console.log('exit', e)
           })
       }
   }
   
   //page.html
   <ion-content>
       <ion-button (click)="openBrowser()">Open browser</ion-button>
   </ion-content>
   ```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Tested on any simulator and iPhone with newest iOS Version (13.4.1)
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   ```
   Ionic:
   
      Ionic CLI                     : 6.6.0 
(~/.nvm/versions/node/v13.2.0/lib/node_modules/@ionic/cli)
      Ionic Framework               : @ionic/angular 5.0.7
      @angular-devkit/build-angular : 0.803.26
      @angular-devkit/schematics    : 8.3.26
      @angular/cli                  : 8.3.26
      @ionic/angular-toolkit        : 2.2.0
   
   Cordova:
   
      Cordova CLI       : 9.0.0 ([email protected])
      Cordova Platforms : ios 5.1.1
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, 
cordova-plugin-ionic-webview 4.2.0, (and 5 other plugins)
   
   Utility:
   
      cordova-res                          : 0.12.1
      native-run (update available: 1.0.0) : 0.2.9
   
   System:
   
      ios-deploy : 1.9.4
      ios-sim    : 8.0.2
      NodeJS     : v13.2.0 (~/.nvm/versions/node/v13.2.0/bin/node)
      npm        : 6.14.4
      OS         : macOS Catalina
      Xcode      : Xcode 11.4.1 Build version 11E503a
   ```
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to