mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-22 07:14:54 +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.
|
* Let the app going to sleep.
|
||||||
*/
|
*/
|
||||||
- (void) stopKeepingAwake {
|
- (void) stopKeepingAwake {
|
||||||
|
|
||||||
|
if (TARGET_IPHONE_SIMULATOR) {
|
||||||
|
NSLog(@"BackgroundMode: On simulator apps never pause in background!");
|
||||||
|
}
|
||||||
|
|
||||||
[audioPlayer pause];
|
[audioPlayer pause];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user