diff --git a/ios/CDVBackgroundGeolocation/CDVBackgroundGeolocation.m b/ios/CDVBackgroundGeolocation/CDVBackgroundGeolocation.m index 30375aec5..9d06e29a3 100644 --- a/ios/CDVBackgroundGeolocation/CDVBackgroundGeolocation.m +++ b/ios/CDVBackgroundGeolocation/CDVBackgroundGeolocation.m @@ -449,14 +449,9 @@ - (void) onHttpAuthorization { */ -(void) onFinishLaunching:(NSNotification *)notification { - if (@available(iOS 10, *)) { - UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; - center.delegate = self; - } - NSDictionary *dict = [notification userInfo]; - MAURConfig *config = [facade getConfig]; + if (config.isDebugging) { if (@available(iOS 10, *)) @@ -469,7 +464,6 @@ -(void) onFinishLaunching:(NSNotification *)notification if ([dict objectForKey:UIApplicationLaunchOptionsLocationKey]) { NSLog(@"%@ %@", TAG, @"started by system on location event."); - MAURConfig *config = [facade getConfig]; if (![config stopOnTerminate]) { [facade start:nil]; [facade switchMode:MAURBackgroundMode];