mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-12-23 13:57:35 +00:00
On simulator apps never pause in background
This commit is contained in:
parent
8280fdeb3a
commit
6fdfbdc29f
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user