mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-14 19:44:53 +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
|
||||
{
|
||||
[self.commandDelegate runInBackground:^{
|
||||
enabled = [self.class isRunningWebKit];
|
||||
[self configureAudioPlayer];
|
||||
[self configureAudioSession];
|
||||
[self observeLifeCycle];
|
||||
}];
|
||||
enabled = [self.class isRunningWebKit];
|
||||
[self configureAudioPlayer];
|
||||
[self configureAudioSession];
|
||||
[self observeLifeCycle];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user