iOS supports downloads when an app is suspended, closed, out of focus, and in any other inactive state. Spotify should use the information available at https://developer.apple.com/documentation/foundation/url_loading_system/downloading_files_in_the_background (SWIFT) and https://developer.apple.com/documentation/foundation/url_loading_system/downloading_files_in_the_background?language=objc (OBJECTIVE C) to implement the necessary APIs to enable background downloads for saving music for offline playback. This is a huge advantage that Apple Music has over Spotify, and it is an outright lie to claim that iOS does not permit third party apps to run download tasks in the background.