spotify / ios-sdk

Spotify SDK for iOS
https://developer.spotify.com/documentation/ios/
661 stars 188 forks source link

Apps using the spotify IOS SDK are suspended while in the background #372

Open rtessler opened 1 year ago

rtessler commented 1 year ago

Shortly after going into the background my app is suspended by IOS At this point I have lost control over spotify playback Background mode capability is enabled in Xcode and the app store I have tried playing a silent audio using another audio package while playing tracks using the spotify SDK, making geolocation requests every 10 seconds, to no avail as the app is still suspended The spotify IOS SDK is not of use to me if I cannot control it while in the background This problem does not occur while using other audio streaming APIs. I would ask spotify to create a new streaming API to prevent this problem

monkeyRing commented 1 year ago

This is how Spotify Connect works. It seems to automatically disconnect after 30 seconds. There's nothing we can do about this using the Spotify SDK