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

Callback for SPTAppRemotePlayerAPI pause() method never returns. #2

Closed
mrpossoms opened this issue Apr 30, 2018 · 3 comments
Closed

Comments

@mrpossoms
Copy link

  • remote-sdk version 1.0.0
  • Spotify version 8.4.51
  • iPhone SE
  • iOS 11.3

Calling pause() on a valid SPTAppRemotePlayerAPI instance with an open connection properly pauses playback, but the callback never returns with a result or error object.

Also, once the playback has paused, the connection closes. Attempting to call connect() on the SPTAppRemotePlayerAPI object never reconnects. Alternatively, attempting to reauthorize also does not allow reconnection.

@kafejo
Copy link

kafejo commented May 20, 2018

Any update on this? This is really annoying as there's no way to resume playback once user pauses the player.

@jackfreeman
Copy link
Contributor

Currently, when audio is paused the Spotify app is suspended in the background. This requires an app switch to resume playing music using the authorizeAndPlayURI: API. There is no player state callback after calling pause as the connection to the Spotify app has been terminated. Please see the included demo app and how it handles resuming playback after a pause. I also recommend checking out our Application Lifecycle Guide for more info on when to connect and disconnect App Remote.

This behavior is subject to change, so you should monitor connection states instead of assuming a pause will always result in a disconnect.

@arirawr arirawr closed this as completed Jun 13, 2018
@Ge0rges
Copy link

Ge0rges commented Aug 4, 2021

Hello,

I'm wondering how is one meant to implement a Play/Pause button? Are we expected to call authorizeAndPlayURI after the user pauses music for any action (such as skip)? And if so why does the resume function exist.

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

5 participants