Loading src/ios/CDVSound.m +3 −0 Changes for src/ios/CDVSound.m: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -555,7 +555,10 @@ } // get the audioSession and set the category to allow recording when device is locked or ring/silent switch engaged if ([self hasAudioSession]) { if (![self.avSession.category isEqualToString:AVAudioSessionCategoryPlayAndRecord]) { [self.avSession setCategory:AVAudioSessionCategoryRecord error:nil]; } if (![self.avSession setActive:YES error:&error]) { // other audio with higher priority that does not allow mixing could cause this to fail errorMsg = [NSString stringWithFormat:@"Unable to record audio: %@", [error localizedFailureReason]]; Loading Loading
src/ios/CDVSound.m +3 −0 Changes for src/ios/CDVSound.m: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -555,7 +555,10 @@ } // get the audioSession and set the category to allow recording when device is locked or ring/silent switch engaged if ([self hasAudioSession]) { if (![self.avSession.category isEqualToString:AVAudioSessionCategoryPlayAndRecord]) { [self.avSession setCategory:AVAudioSessionCategoryRecord error:nil]; } if (![self.avSession setActive:YES error:&error]) { // other audio with higher priority that does not allow mixing could cause this to fail errorMsg = [NSString stringWithFormat:@"Unable to record audio: %@", [error localizedFailureReason]]; Loading