Spotify Integration Issues
lewis992 opened this issue · comments
SDK Version: spotify-app-remote-release-0.8.0.aar
OS Version: android 12
Scope(s):
Steps to reproduce:
-
Enter the client ID, redirect URL, and package name generated by the spotify console in the project; Import Project
-
Run the program code, val connectionParams=ConnectionParams. Builder (clientId)
. setRedirectUri (redirectUri)
. showAuthView (true)
. build()
SpotifyAppRemote. connect (this, connectionParams, object: Connector. ConnectionListener{
Override fun on Connected (appRemote: SpotifyAppRemote){
Spotify AppRemote=appRemote
Log. d ("MainActivity", "Connected! Yay!")
//Now you can start interacting with App Remote
Connected()
}
Override fun onFailure (throw: Throwable){
Log. e ("MainActivity", throw. message, throw)
//Something wet wrong when attacking to connect! Handle errors here
}
}No error log printing, no UI pop-up prompt
3.Import the client ID, signature, redirect URL from the spotify demo, change the applicationId to com.spotify.android.appremote.demo, run the project, and the log shows successful login. At the same time, it can control other APIs
Expected behaviour: Normal authorized login
Actual behaviour: No log printing, no page response display
the log:
023-08-23 11:09:08.525 14659-14855 SPOTIFY_APP_REMOTE com.xmlb.car D Start remote client
2023-08-23 11:09:08.535 14659-14659 SPOTIFY_APP_REMOTE com.xmlb.car D Spotify service connected
2023-08-23 11:09:08.536 14659-14855 SPOTIFY_APP_REMOTE com.xmlb.car D Connecting to Spotify service
2023-08-23 11:09:08.569 14659-14855 com.xmlb.car com.xmlb.car W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2520
2023-08-23 11:09:08.569 14659-14855 com.xmlb.car com.xmlb.car W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2523
2023-08-23 11:09:08.570 14659-14855 com.xmlb.car com.xmlb.car W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2523
2023-08-23 11:09:08.571 14659-14855 com.xmlb.car com.xmlb.car W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2523
2023-08-23 11:09:08.571 14659-14855 com.xmlb.car com.xmlb.car W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2523
2023-08-23 11:09:08.571 14659-14855 com.xmlb.car com.xmlb.car W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2523
2023-08-23 11:09:08.572 14659-14855 com.xmlb.car com.xmlb.car W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2523
2023-08-23 11:09:08.572 14659-14855 com.xmlb.car com.xmlb.car W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2523
2023-08-23 11:09:08.573 14659-14855 com.xmlb.car com.xmlb.car W Unable to resolve Lcom/spotify/protocol/types/HelloDetails; annotation class 2523
2023-08-23 11:09:08.57