Skip to content

Recording won't resume if the app is in background and a call is taken #542

@sergi-labhouse

Description

@sergi-labhouse

Package version
6.1.1

Environment

  • OS: iOS

Describe the bug

If you start a recording and the app is in foreground, receiving a call pauses the recording, but the recording resumes automatically after the call ends.

If you start a recording and put the app in background, receiving a call pauses the recording, but the recording never resumes after the call ends.

Add your record configuration RecordConfig(encoder: encoder, numChannels: 1, audioInterruption: AudioInterruptionMode.pauseResume);

To Reproduce

Steps to reproduce the behavior:

  1. Take the sample app
  2. Add audioInterruption: AudioInterruptionMode.pauseResume to RecordConfig in Recorder._start()
  3. Run the app in iOS
  4. Start a recording
  5. Put the app in background
  6. Take a call or FaceTime
  7. End the call.
  8. Put the app in foreground

Although RecorderSessionExtension.onAudioSessionInterruption() and AudioRecordingDelegate.resume() are being called, the recording doesn't resume

Expected behavior

After the call ends, the recording automatically resumes, as it does when the app is in the foreground

Additional context

PoC.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions