Window.open listener

Is it possible to call the event listener from window.open() inside an Ionic 2 application?

This tutorial does it brilliantly http://www.joshmorony.com/integrating-ionic-2-with-the-dropbox-api-part-2/ however, using inAppBrowser is obviously native. I want to extract the token in development from the ‘ionic serve’ command.

Ionic 1 forums discuss this, which isn’t bearing any fruit for me.
var authenticate = window.open(url, ‘_blank’, ‘location=no,toolbar=yes’);
authenticate.addEventListener(‘loadstart’, function (event) {
});

Thanks

Cameron

1 Like

Hi Cameron,

Did you get anywhere with this? I have the same problem.

I want to launch a window and have event listeners working for election, browser and app…

At the moment I’m just testing browser with ionic serve and electron…I’m not an app first solution.