为什么在使用 ionic InApp 浏览器实现时在 android 应用程序的外部浏览器中打开 link
Why is it opening the link in external browser in android app when implemented using ionic InApp browser
我正在尝试从 ionic 应用程序打开一个 URL,为此我已经实现了 InApp 浏览器,但是它在移动设备的外部浏览器中打开了 URL,它应该在应用。不知道我哪里错了。下面是我试过的代码,任何这方面的指导都非常有帮助,谢谢..
openUrl(){
this.platform.ready().then(() => {
let url='http://192.168.0.7:8000/pay;
const browser = this.iab.create(url, '_blank',
'hidden=yes,location=yes,clearsessioncache=yes,clearcache=yes');
});
// Inject scripts, css and more with browser.X
}
这对我有用。
openUrl(){
let url='http://192.168.0.7:8000/pay';
const browser = this.iab.create(url, '_blank',
'hidden=no,location=yes,clearsessioncache=yes,clearcache=yes');
browser.show();
}
注意事项:
1.隐藏=否
2. browser.show()
这是结果:
我正在尝试从 ionic 应用程序打开一个 URL,为此我已经实现了 InApp 浏览器,但是它在移动设备的外部浏览器中打开了 URL,它应该在应用。不知道我哪里错了。下面是我试过的代码,任何这方面的指导都非常有帮助,谢谢..
openUrl(){
this.platform.ready().then(() => {
let url='http://192.168.0.7:8000/pay;
const browser = this.iab.create(url, '_blank',
'hidden=yes,location=yes,clearsessioncache=yes,clearcache=yes');
});
// Inject scripts, css and more with browser.X
}
这对我有用。
openUrl(){
let url='http://192.168.0.7:8000/pay';
const browser = this.iab.create(url, '_blank',
'hidden=no,location=yes,clearsessioncache=yes,clearcache=yes');
browser.show();
}
注意事项: 1.隐藏=否 2. browser.show()
这是结果: