Deeplinks not closing popup browser

Hey guys, so I’m using the cordova-spotify plugin to trigger a Spotify login. I am able to get the login to popup but when the user clicks login, the console logs this:

It says it’s successful but the popup browser isn’t closing. How can I get it to close?

Here are the functions I’m using:

connect(): Promise<any> {

    return this.spotify.authenticate(this.options)

  }
spotifyConnect() {

    this._spotifyService.connect().then(

      result => {
        console.log('hi!', result) <-- this never gets called!
      }

    );

  }

Thank you!