我想使用Crosswalk Plugin在ionic 3中实现我的webRTC项目,以便在webview中显示。但是,安装插件后,“按钮”不显示任何内容或不显示Webview。这是我的代码:
home.html
<ion-header>
<ion-navbar>
<ion-title>
Ionic Blank
</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<ion-slides pager>
<ion-slide>
<h2>Hi, Welcome to Our Confrence</h2>
</ion-slide>
<ion-slide>
<h2>Please keep enjoy to call our customer service</h2>
<button ion-button block clear (click)="openWebPage('https://example.videocall.com')">Start Video Call</button>
</ion-slide>
</ion-slides>
</ion-content>
home.ts
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController) {
}
openWebPage(url : string) {
const browser = window.open(url, '_self', 'location=yes');
}
}