0
イオンフレームワークが新しく、Iframeのハードウェアのバッククリック機能を管理できません。私は特定のURLを読み込むためにIframeを使用しています。ハードウェアの戻るボタンをクリックすると、ブラウザの履歴ページに戻ることができます。しかし、ハードウェアをクリックするたびに、そのアプリを終了します。iframeのブラウザ履歴を管理するonclickハードウェアのバックボタンionic 2
`<iframe #iframe id="iframe" style="height: 100%;width: 100%;" src="your url"></iframe>`
@ViewChild('iframe') iframe:ElementRef;
constructor(public platform:Platform,public nav:Nav){
platform.registerBackButtonAction(() => {
if(this.nav.canGoBack()){
this.iframe.nativeElement.contentWindow.history().back();
}
});
}