Ionic 2 native InAppBrowser


#1

Hello all,

I use typescript code for Inonic 2+ native (added plugin).
The problem is that if I use _system in the Ionic view APP the page opens but with _blank notting happened.
Like your advice, thanks!

Code:

import { Component } from ‘@angular/core’;
import { Platform, NavController } from ‘ionic-angular’;
import { InAppBrowser } from ‘ionic-native’;

@Component({
selector: ‘page-inappbrowser’,
templateUrl: ‘inappbrowser.html’
})
export class InappbrowserPage {

constructor(
  public navCtrl: NavController,
  public platform: Platform  
  ) {
    this.platform = platform;   
  }
login(url){
  this.platform.ready().then(() => {
    let browser = new InAppBrowser(url, "_blank", "location=true");
    browser.show();
  });
}

}


#2

answered my own question, other people can use it.
InAppBrowser is not support bij Ionic view app see, https://docs.ionic.io/tools/view/#supported-plugins