Search code examples
iosobjective-caudiocall

iOS - Playing sound in background when making a call


I have an app in Obj-C that makes calls, I would like to play a sound when the user presses a button to start a call. Will the sound keep playing in the background when the call is made? If so, how can I achieve this?

Thank you in advanced


Solution

  • There is absolutely no way to play a sound while a Carrier phone call is in progress.

    Sometimes, currently playing audio is interrupted by audio from a different app. On iPhone, for example, an incoming phone call interrupts the current app’s audio for the duration of the call. In a multitasking environment, the frequency of such audio interruptions can be high.

    It is the same behavior with outgoing phone call. It will interrupts the current app's audio (playing/recording) during the duration of the call.

    You can read more here : iOS Human Interface Guide