Skip to content

Instantly share code, notes, and snippets.

@hyunki85
hyunki85 / gist:ff082fc5aa27e216f498368a0458b620
Last active November 17, 2017 05:55
ionic inAppBrowser listen event trick,
let browser = this.inAppBrowser.create(url, '_blank','location=no,zoom=no');
browser.on("loadstart").subscribe((event) => {
if(event.url.includes('yourdomain')) {
//do Somthing
browser.executeScript({ code: "window.history.back(-1);" }).then((res) => {
});
}
});