My app shows that red bar every time I close it. It has nothing to do with the fact that you’re running audio I believe. That’s iOS simply saying that it’s recording the state of your application so that it can quick launch it if the user reopens it.
That’s iOS simply saying that it’s recording the state of your application so that it can quick launch it if the user reopens it.
I don’t think so. A red flashing status bar would be a bit overkill to indicate that the apps state is stored.
The reason you are seeing it only when your app closes is that this is the only time your app goes briefly into background mode before it is stopped by the operating system.
To reproduce the effect try the following:
If you have an audio playing app add into your App’s plist the “Required background modes” (UIBackgroundModes) key with a value of “App plays audio” (audio). Then open your app and play some audio. Switch away from your app by going back to the launch screen of your iOS device. It should continue playing audio and it will show the red flashing status bar.
It’s not quit. It goes into the background (Multi-Tasking) but keeps playing audio. This is how it should work. The app goes into background but keeps playing audio. I don’t want the audio to stop.
The problem seems to be that iOS thinks my app is recording. But I am only playing audio.
Ok, well I don’t know then… If you hack out that variable, it certainly won’t open any kind of input device, so I don’t think the OS would think that it’s recording.
Can this somehow integrated into the code? audioInputIsAvailable should probably used here as well. Furthermore the number of requested input channels when initializing the audio manager should have influence as well?