1.) Spotify
Next task is to authenticate the user for each platform.
Note: Spotify and Apple Music both have instructions on how to authenticate a user on their mobile development website listed for free as shown below
Spotify: https://developer.spotify.com/documentation/android/tutorials/authorization#using-the-spotify-client-to-authenticate-the-user
Note: Use the Spotify client to authenticate the user.
This is the preferred and recommended method of authentication because users don’t need to enter their credentials.
If Spotify is not installed on the device, the auth-lib will fallback to the WebView based authorization and open the Spotify Accounts login page at https://accounts.spotify.com in a native WebView. User will have to enter their username and password to login to Spotify and accept the supplied scopes.
Last task is to do a simple song search to verify connection to the music API, and do a simple print statement to see the output results.
Each code snippet should contain comments describing the function of that piece of code.
Future tasks and considerations:
-Add option to login with Apple Music
-To get this to work on the IOS development environment.
Posted On: March 05, 2024 20:24 UTC
Category: Mobile App Development
Skills:Android, Android App Development, User Authentication, Java, iOS Development, iOS
Country: United States
click to apply
Powered by WPeMatico
