diff --git a/src/ios/CDVSound.m b/src/ios/CDVSound.m index d63b0ab2d..987a25870 100644 --- a/src/ios/CDVSound.m +++ b/src/ios/CDVSound.m @@ -677,7 +677,7 @@ - (void)startRecordingAudio:(CDVInvokedUrlCommand*)command // get the audioSession and set the category to allow recording when device is locked or ring/silent switch engaged if ([weakSelf hasAudioSession]) { if (![weakSelf.avSession.category isEqualToString:AVAudioSessionCategoryPlayAndRecord]) { - [weakSelf.avSession setCategory:AVAudioSessionCategoryRecord error:nil]; + [weakSelf.avSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil]; } if (![weakSelf.avSession setActive:YES error:&error]) {