Spotify callback redirect URI Android


#1

I am currently developing an application that uses angular - spotify .

My problem of the day is at the spotify connection callback .
With " Ionic serve" , the callback (http://localhost:8000/android/www/callback.html) works fine but when I run or emulate , the callback fails ( normal because the android device doesn’t know localhost).
I spent the day yesterday to seek a solution to my problem.


#2

Did you ever find a solution to this? I’m facing a similar issue…


#3

There is certainly a better way.
But my solution is to call in webservice my server that uses the spotify-web-api-node. So the mobile connects through the server that returns him his token.
I open a view from my server with the InAppBrowser plugin.

But if you find THE solution, do not hesitate to me fair share. :wink: