diff --git a/src/ios/APPBackgroundMode.m b/src/ios/APPBackgroundMode.m index e66c5a5..a99f9f3 100644 --- a/src/ios/APPBackgroundMode.m +++ b/src/ios/APPBackgroundMode.m @@ -143,18 +143,10 @@ }; /** - * Handle audio session interruption. + * Restart playing sound when interrupted by phone calls. */ - (void) handleAudioSessionInterruption:(NSNotification*)notification { - NSNumber* receivedType = [notification.userInfo - valueForKey:AVAudioSessionInterruptionTypeKey]; - - NSNumber* expectedType = [NSNumber numberWithInt:AVAudioSessionInterruptionTypeEnded]; - - if ([receivedType isEqualToNumber:expectedType]) { - [self configureAudioSession]; - [self keepAwake]; - } + [self keepAwake]; } @end