Doesn't audio background guarantee that app is not suspended by system? Strictly speaking, no. The audio background category allows your app to remain awake while your audio session is active, which isn't quite the same as guaranteeing it will not be suspended. Next a quick note here: The problem is that my app sometimes gets suspended few hours after getting into background. I cannot find the exact reason for it. How are you finding out about this problem? Is it: You're able to directly reproduce it. Users are complaining about it. You have log data showing that it's occurring. The last kind of data (#3) is the case you need to be very careful about. I've seen many cases where a developer identified a problem based on log data then spent a great deal of time and worry investigating it, only to eventually discover that... nothing was actually going wrong. Logging only shows your apps side of an issue, which means you can't really tell the difference between cases like the system stopped playing me and the use
Topic:
App & System Services
SubTopic:
Core OS
Tags: