0

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);
        }
MohammedAli
  • 2,361
  • 2
  • 19
  • 36
Hatem Husam
  • 177
  • 1
  • 3
  • 14

0 Answers0