JoshLmao / Spotify4Unity

🎮🎵 Add the SpotifyAPI.NET library into Unity, enabling access to the Spotify Web API, allowing for control of Spotify and accessing the world of music
https://assetstore.unity.com/packages/tools/integration/spotify4unity-ui-tools-spotify-authorization-129028
MIT License
94 stars 8 forks source link

Log in redirect sometimes does not work and fails to log-in / authenticate #27

Closed benlane2003 closed 4 years ago

benlane2003 commented 4 years ago

Describe the bug When logging into Spotify and staying loggin in via "Remember me", if I attempt to re-authenticate the Spotify mobile service, after restarting the program, the log in window pops up but it is a blank page and when I go back into my program manually, it does not authenticate and throws a "Unable to get any application redirect arguments when expecting them" console message.

To Reproduce: If you can, list some of the steps you are taking

Expected behavior After website pops up it should redirect back to the program and authenticate the log in.

Platform:

Unity Version:

benlane2003 commented 4 years ago

Found the problem, for anybody else that is having similar issues on Android: How I fixed mine is adding "&show_dialog=true" to the end of my log-in url. It seems like the "show_dialog" parameter is always set to false, thus, hiding the content of the webpage (the web page is a page asking the user if they want to grant the APP permission to use said user's Spotify account and info). After adding in this parameter and setting it to true, the page will no longer be blank and the user can hit "accept" to redirect back into the APP and receive the callback.