OK, so I pointed out the UIRequiresPersistentWiFi key of my application on YES , so that iOS does not stop retrieving data when my application is in the background.
However, when a user uses cellular (not Wi-Fi) and my application is in the background, the data download stops after a few minutes.
I double-checked the docs, and there seems to be no equivalent of UIRequiresPersistentWiFi for the cellular network that I could install.
Is there a way in which I can connect to the cellular network when the application is in the background? Any clues?
Hurrah!
Update:
I am making an application for internet radio. Stream is combined with mp3s, which I request one by one (I can not request them in advance, I can not change the server). It works when my application is in the background and uses wifi. However, when using a cellular connection, network requests are not completed after some time spent in the background. You can not change the strategy. The application is in the AppStore, and it worked before. I assume that they have changed something in the new version of the system.
The more I donβt need throttling. My radio application is already approved and is in the AppStore. The stream is sent from 128 kb / s (this is the maximum), so this is not a problem. It seems like the system is disconnecting my network requests (when on the cellular network) after a while in the background. However, this only happens when I try to start a connection in the background.
Description:
- App is in the background, playing mp3 transmitted over a cellular network.
- MP3 ends.
- I am requesting the url of another mp3
- Request failed *.
* Works when using WiFi.
source share