Ionic native In App Browser how to get current url


#1

Hi,
i want to run in app browser and then i want to get current URL when change webpage how can i get it ?

  ngOnInit(){
    const browser = this.iab.create('assets/page1.html','_self',{location:'no'}); 
    browser.on('loadstop').subscribe(
  data => {
      let url = data.url;
     alert(url);
  });
 }

Sorry for my poor english skill, Thank you.