fix(ios): Reset default audio session category when release (CB-13243) (#354)
Co-authored-by: yunseok <hannut91@gmail.com>
diff --git a/src/ios/CDVSound.m b/src/ios/CDVSound.m
index c92cd02..aef211e 100644
--- a/src/ios/CDVSound.m
+++ b/src/ios/CDVSound.m
@@ -633,6 +633,7 @@
avPlayer = nil;
}
if (! keepAvAudioSessionAlwaysActive && self.avSession && ! [self isPlayingOrRecording]) {
+ [self.avSession setCategory:AVAudioSessionCategorySoloAmbient error:nil];
[self.avSession setActive:NO error:nil];
self.avSession = nil;
}