Skip to content

Inconsistent AudioInterruptionMode behavior: Android ignores interruptions, iOS fails to resume #577

@leonardmatasel-dinova

Description

@leonardmatasel-dinova

Package version
6.1.1

Environment

  • OS: Android (android 16) / iOS (26)
  • Flutter version: 3.38.6

Describe the bug
I am experiencing inconsistent behavior regarding AudioInterruptionMode on both platforms when a native phone call is received during recording:

  1. Android: The recording fails to pause during an incoming call. The session remains active but captures only silence, ignoring both AudioInterruptionMode.pause and AudioInterruptionMode.pauseResume configurations.
  2. iOS: The recording correctly pauses when the call starts, but it fails to resume automatically after the call ends, despite using AudioInterruptionMode.pauseResume.

Add your record configuration RecordConfig(...)

const config = RecordConfig(
  encoder: encoder,
  numChannels: 2,
  noiseSuppress: true,
  echoCancel: true,
  autoGain: true,
  audioInterruption: AudioInterruptionMode.pauseResume,
);

To Reproduce
Steps to reproduce the behavior:

  1. Initialize the recorder with the configuration above.
  2. Start recording on a real device.
  3. Receive an incoming phone call.
  4. Answer the call.
  5. Hang up the call.

Expected behavior
With AudioInterruptionMode.pauseResume, the recorder should:

  1. Pause automatically when the phone call is answered.
  2. Resume recording automatically when the call is ended.

Additional context

  • On Android, I also tested with AudioInterruptionMode.pause, but the recording still ignores the interruption and keeps running during the call.
  • On iOS, the interruption start is detected (it pauses), but the end of the interruption does not trigger the resume.

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