Audio not recordig in background on IOS

Please provide the following:

  1. SDK Version: 48
  2. Platforms(Android/iOS/web/all): IOS
  3. “expo-av”

How can i record an audio when the app is in background? I tried on android and its working but on IOS its only recording on the foreground

Its an Expo app and am using Expo Av library

I have already allowed the permissions and set the UIBackgroundModes with audio

“infoPlist”: {

“UIBackgroundModes”: [
“audio”
]
}

And in the code also

await Audio.setAudioModeAsync({
allowsRecordingIOS: true,
playsInSilentModeIOS: true,
staysActiveInBackground:true
});

but once the app is in background mode it is failing to start recording. Can anyone help me how I can fix this ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.