diff --git a/src/ios/APPBackgroundMode.m b/src/ios/APPBackgroundMode.m index 4661f4c..d11dbd7 100644 --- a/src/ios/APPBackgroundMode.m +++ b/src/ios/APPBackgroundMode.m @@ -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]; } /**