Call recording - recorded file missing audio in case the app goes to background

While using start and stop recording functions as described in the documentation here:
Direct call | Calls iOS SDK | Sendbird Docs , the recording works fine if only the app stays in foreground throughout the call.

  • But if at any point during the call if the app moves to background and comes back to foreground - the entire recorded call does not have any audio at all.
  • If the app is force closed in between without calling the stopRecording function, the recorded file is corrupt and unplayable.

PS: this is a react native app and we are using the sendbird functions through react native bridge’s native modules