mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-15 03:54:54 +00:00
Fix threading issue on iOS9
This commit is contained in:
parent
18fc64fddb
commit
891fa51cb2
@ -50,12 +50,10 @@ NSString* const kAPPBackgroundEventDeactivate = @"deactivate";
|
|||||||
*/
|
*/
|
||||||
- (void) pluginInitialize
|
- (void) pluginInitialize
|
||||||
{
|
{
|
||||||
[self.commandDelegate runInBackground:^{
|
enabled = [self.class isRunningWebKit];
|
||||||
enabled = [self.class isRunningWebKit];
|
[self configureAudioPlayer];
|
||||||
[self configureAudioPlayer];
|
[self configureAudioSession];
|
||||||
[self configureAudioSession];
|
[self observeLifeCycle];
|
||||||
[self observeLifeCycle];
|
|
||||||
}];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user