I am opening window in my ionic app
await Browser.open({url: environment.apiUrl + `/myurl`});
But then I want to close close that window it self when user complete certain action. I tried window.close
but due to security issues it does not work.
How do I close that window?
Finally found the way.
window.location.href="customschema://"
Place into app.component on app start
if (this.platform.is('ios')) {
App.addListener('appUrlOpen', data => {
if (data.url.indexOf('comflymarkonline://')> -1) {
Browser.close();
}
});
}