-
Makesure you have at least 1 playlist
- Login to your Spotify App
- Create a playlist, with at least 3 items
-
Fill in .env file with your credentials
- Go to https://developer.spotify.com/console/get-playlists/
- Click on Get Token
- For permissions, just tick
playlist-read-private
- Copy and paste token to the .env.example file at the root of the project
- Also fill in your user id in the .env.example file
- Transfer .env.example contents to .env file at project root folder
-
Run code on Android Studio, e.g. on device Pixel 3 API 29
- Autoplay first song on open
- Pause/play song
- Scroll up and down to next song
- UI with image and title
- Pagination and loading to load next track from Spotify API every 2 songs
- Dio 401 - No bearer token/token has expired
- No sound coming out at all (first song should autoplay) - Wipe all data from your device