Search code examples
iosavfoundationmicrophone

iOS: access device microphone in background app


Im wondering, is there a way for an app to access the Microphone of an iDevice while running in the background (The device may or may not be locked)?

I need to listen to the audio input and do some sound recognition.

Cheers from Mexico


Solution

  • According to Apple's developer page, you can use the "audio" permission, which gives this access:

    The app plays audible content to the user or records audio while in the background. (This content includes streaming audio or video content using AirPlay.)