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(); });
}
}