Using Musickit javascript sdk with Ionic


#1

I am trying to use Apple’s new javascript musickit sdk “https://developer.apple.com/documentation/musickitjs” inside an ionic app, but the authentication doesn’t work when I test in emulators, everything works as expected in the browser. When I call MusicKit.getInstance().authorize(), my app gets reloaded in an inappbrowser window. I am using cordova-plugin-inappbrowser in my app and this is the error I get in the console

. When I remove the inappbrowser plugin, Apple’s authentication window opens and after I enter the credentials I get redirected to a blank page with a loading indicator and I get this error .