Skip to content

RecordIos.manageAudioSession: Possible "Recorder has not yet been created or has already been disposed" error #609

Description

@helgoboss

Package version

7.1.0

Environment

  • OS: iOS

Describe the bug

I sometimes encounter a platform exception when doing await _recorder.ios?.manageAudioSession(false) right after creating the AudioRecorder:

Recorder has not yet been created or has already been disposed

Additional context

Maybe the reason is that the recorder doesn't exist yet on the native side? I saw that most of the other calls go through AudioRecorder._safeCall to make sure that the _createFuture returned. But manageAudioSession() doesn't. What do you think?

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