From 6fdfbdc29f54b084f8ce9713cc1fcf9ac0d5d02b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Mon, 17 Nov 2014 14:56:26 +0100 Subject: [PATCH] On simulator apps never pause in background --- src/ios/APPBackgroundMode.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ios/APPBackgroundMode.m b/src/ios/APPBackgroundMode.m index 30c2e97..91e6640 100644 --- a/src/ios/APPBackgroundMode.m +++ b/src/ios/APPBackgroundMode.m @@ -106,6 +106,11 @@ * Let the app going to sleep. */ - (void) stopKeepingAwake { + + if (TARGET_IPHONE_SIMULATOR) { + NSLog(@"BackgroundMode: On simulator apps never pause in background!"); + } + [audioPlayer pause]; }