AVAudioRecorder.pause() shows red mic icon in the status bar

Viewed 160

I am working on audio recorder app and I use AVAudioRecorder to record audio.

https://www.hackingwithswift.com/example-code/media/how-to-record-audio-using-avaudiorecorder

Everything works fine. To record audio when app is in the background, I enabled 'audio' background mode. Now the problem appears. Whenever I stop recording, it shows red mic icon in the status bar for less than 1s even the app is in foreground now. https://imgur.com/a/G9NTL4y

If I disable 'audio' background mode, this doesn't appear.

Source code: https://github.com/nightbird8n/AudioRecorder

Please help me to solve this issue. Thanks

0 Answers
Related