Package version
7.1.0
Environment
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?
Package version
7.1.0
Environment
Describe the bug
I sometimes encounter a platform exception when doing
await _recorder.ios?.manageAudioSession(false)right after creating theAudioRecorder:Recorder has not yet been created or has already been disposedAdditional 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._safeCallto make sure that the_createFuturereturned. ButmanageAudioSession()doesn't. What do you think?