1

I'm digging into background audio playing for iOS Apps. I do see a bunch of examples for doing continuous audio playing for background Apps. I wanted to add walkie-talkie like features to my current App, which would need the following:

  1. The App is able to access sockets in the background to establish a constant connexion to receive audio, or something similar.
  2. The App is able to play audio spontaneously without having to be part of a consistent audio stream, even if the App has not been active for some time.
  3. The App audio being played will interrupt any current playing music on the iOS device.

Do iOS devices give programmers the capabilities to program this sort of thing currently?

Robert Harvey
  • 199,517

1 Answers1

2

Currently, under iOS, apps in the background can not start playing or recording audio. They can only continue audio that was already started when the app was in the foreground.

hotpaw2
  • 7,978
  • This was possibly done to make audio simpler for the foreground app, as no background app can muck with your foreground app's audio environment underneath it. – hotpaw2 Aug 05 '16 at 16:01
  • That was much more likely done because an app in the background has a hard time showing a user interface. – gnasher729 Aug 05 '16 at 19:59