Is it possible to call the event listener from inside an Ionic 2 application?

This tutorial does it brilliantly 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 =, ‘_blank’, ‘location=no,toolbar=yes’);
authenticate.addEventListener(‘loadstart’, function (event) {



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.