Connect to the Spotify via SpotifyAppRemote.CONNECTOR.connect() and play playlist URI with SpotifyAppRemote.play() while screen is off and locked
Turn the screen back on
Open another media app (such as a podcast player) and start playback
Expected behaviour:
Spotify should pause itself when podcast player starts playing.
Actual behaviour:
Sometimes, when playback is started from SpotifyAppRemote, Spotify will ignore all audio focus changes and will keep playing over other audio sources This happens even after manually playing/pausing via UI.
Only way I found to get Spotify out of that weird state is to force stop it and restart it again manually.
SDK Version: 0.4.0
OS Version: 10
Spotify Version: 8.6.4.971
Steps to reproduce:
SpotifyAppRemote.CONNECTOR.connect()
and play playlist URI withSpotifyAppRemote.play()
while screen is off and lockedExpected behaviour:
Spotify should pause itself when podcast player starts playing.
Actual behaviour:
Sometimes, when playback is started from SpotifyAppRemote, Spotify will ignore all audio focus changes and will keep playing over other audio sources This happens even after manually playing/pausing via UI.
Only way I found to get Spotify out of that weird state is to force stop it and restart it again manually.
Issue is similar, but less severe than https://github.com/spotify/android-sdk/issues/19