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

Spotify4Unity - Can't get user playlists - Unable to get their UserID #30

Open prakash-rabari-if opened 4 years ago

prakash-rabari-if commented 4 years ago

Describe the bug

  1. Spotify4Unity - Can't get user playlists - Unable to get their UserID

  2. NullReferenceException: Object reference not set to an instance of an object Spotify4Unity.SpotifyServiceBase.OnLoadedPlaylists

note :- my account is Premium for 3 month

*Platform:

Unity Version:

JoshLmao commented 4 years ago

The source is in the repo since it's open source. This will only be null if you have no playlists and I haven't touch this code in a while so I'm limited with my help. Make sure you're configured to access playlists in the API scopes section of the service too

prakash-rabari-if commented 4 years ago

Hello Sir,

The problem here is: We have created the application with Spotify4Unity. I have two accounts of spotify. 1) When I log in with my personal ID and run the application it shows me the device list in the mobile app. (Screenshot ) 2) But when I am trying with the other ID is it not showing me the devices in the list. This other account I am using is for the developer account of spotify. (Screenshot )

Now the problem is

When I am trying with my personal account it shows me the list of songs but I can not control that from here. Also the user ID part of the application is always blank. There is nothing to show in that box. (Screenshot ).

Please guide me as required.