Skip to content

Commit

Permalink
[expo-av] Fix resume audio when in background
Browse files Browse the repository at this point in the history
  • Loading branch information
IjzerenHein committed Jul 23, 2020
1 parent 36e56c6 commit 9a06a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/expo-av/ios/EXAV/EXAV.m
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ - (NSError *)promoteAudioSessionIfNecessary
if (!_audioIsEnabled) {
return UMErrorWithMessage(@"Expo Audio is disabled, so the audio session could not be activated.");
}
if (_isBackgrounded && ![_kernelAudioSessionManagerDelegate isActiveForModule:self]) {
if (_isBackgrounded && !_staysActiveInBackground && ![_kernelAudioSessionManagerDelegate isActiveForModule:self]) {
return UMErrorWithMessage(@"This experience is currently in the background, so the audio session could not be activated.");
}

Expand Down

0 comments on commit 9a06a4f

Please sign in to comment.