Reputation: 1165
I have this code in my app. I am trying to load urls using InAppBrowser. It works perfectly when the url is loaded the first time. The second time, the browser simply doesn't open for the same url or a different url. What is happening here?
I am wondering if this is because an instance of InAppBrowser is still running and needs to be forcefully closed. If so, can I force the browser to close if I detect and instance of it?
let options = 'location=yes';
this.browser = this.iab.create(url, "_system", options);
Opening the browser as "_blank" or "_self" doesn't open the browser at all.
Upvotes: 1
Views: 746
Reputation: 1165
The issue was in the html part. The source element was anchor. When I changed the source element to button, the application started working as expected.
Upvotes: 1