I'm trying to get the current URL
using the InAppBrowser Cordova plugin
, e.url
is returning the first loaded URL
only (this.weburl
).
Am I doing something wrong? or is there an alternative way to approach the same goal?
this.browser = this.iab.create(this.weburl, '_blank');
this.browser.on('loadstop').subscribe(
(e: InAppBrowserEvent) => {
alert(e.url);
}