Fix threading issue on iOS9

This commit is contained in:
Sebastián Katzer 2017-01-30 09:19:15 +01:00
parent 18fc64fddb
commit 891fa51cb2

View File

@ -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];
}];
} }
/** /**