unable to do Song play / pause
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:-
-
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
-
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
I presume your talking about iOS?
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 did you fix this issue?
@export-mike nope, no luck, lmk if u find a fix