0

I am developing a recording app with expo av. I would like to save the recording in case the user closes the app completely while recording. I managed to solve that problem on Android by calling stopRecording in componentWillUnmount

  componentWillUnmount() {
    if (isRecording) stopRecording();
  }

However, on iOS componentWillUnmount doesn't get executed on the app closed. Any idea what to do about it?

0 Answers0