InAppBrowser, how to retrieve the last url visited?

Could you tell me how to retrieve the last url visited ?

I tried this :

browser.on(‘exit’).subscribe(function(event) {
console.log(“URL”+event.url);
});

And

browser.on(‘exit’).subscribe((event) =>{
console.log(“URL”+event.url);
});

But url it’s always null…

TKs

Have you find the solution for your issue ? It interests me