hello,
in my blank ionic 2 app i added InAppBrowser plugin by this command :-
$ ionic plugin add cordova-plugin-inappbrowser
it’s all ready added into the application, here is my home.ts file :-
import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
import {InAppBrowser} from 'ionic-native';
@Component({
templateUrl: 'build/pages/home/home.html'
})
export class HomePage {
constructor(public navCtrl: NavController) {
}
login () {
return new Promise(function(resolve, reject) {
let browser = InAppBrowser.open('https://ionic.io', '_system');
console.log("done");
});
}
}
in html file i called it that:-
<button (click)="login()">Login</button>
results! … in browser console i have done, but in mobile device it opens the web site in traditional google chrome app not in app browser ?
i think i missed a small thing, so any one can help me ?