Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to do Song play / pause #222

Open
shubh89193 opened this issue Dec 22, 2022 · 4 comments
Open

unable to do Song play / pause #222

shubh89193 opened this issue Dec 22, 2022 · 4 comments

Comments

@shubh89193
Copy link

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:- bih/spotify-token-swap-service#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

@cjam
Copy link
Owner

cjam commented Dec 29, 2022

I presume your talking about iOS?

@MehediH
Copy link

MehediH commented Jan 22, 2023

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?

@export-mike
Copy link

@MehediH did you fix this issue?

@MehediH
Copy link

MehediH commented Jan 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants