react-native-spotify-remote icon indicating copy to clipboard operation
react-native-spotify-remote copied to clipboard

unable to do Song play / pause

Open shubh89193 opened this issue 2 years ago • 4 comments

Hello I am suffering from this issue Whenever I am clicking play or pause Spotify disconnects from my application. I tried following the ways we are completely blocked now on Spotify we got success in swap URL login in Spotify in react native but the original issue is still there:- once the user pauses the audio to play again user has to login

we tried the following ways to solve this:-

  1. with Native authorizeAndPlayURI https://github.com/spotify/ios-sdk/tree/master/DemoProjects/NowPlayingView conclusion:- Same issue as informed earlier, we have to re-login to Spotify for Authentication

  2. with Native SwapURL https://github.com/spotify/ios-sdk/tree/master/DemoProjects/SPTLoginSampleAppSwift, https://developer.spotify.com/documentation/ios/guides/token-swap-and-refresh/

error:- https://github.com/bih/spotify-token-swap-service/issues/5 conclusion:- Authentication fails with Invalid_grant error

3)with ReactNative with token swap the token refresh API method on call of play, pause button https://developer.spotify.com/documentation/ios/guides/token-swap-and-refresh/

conclusion:- we have to re-login to Spotify for Authentication

shubh89193 avatar Dec 22 '22 15:12 shubh89193

I presume your talking about iOS?

cjam avatar Dec 29 '22 13:12 cjam

hey @cjam we are experiencing the same issue on our side w/ Expo. Currently getting this error:

[Unhandled promise rejection: Error: Spotify does not appear to be installed. Note: You must whitelist the 'spotify' URL scheme in your info.plist.]

even though we are able to authorize via the Spotify app and it's installed. Any ideas?

MehediH avatar Jan 22 '23 20:01 MehediH

@MehediH did you fix this issue?

export-mike avatar Jan 13 '24 22:01 export-mike

@export-mike nope, no luck, lmk if u find a fix

MehediH avatar Jan 14 '24 15:01 MehediH