Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions ios/CDVBackgroundGeolocation/CDVBackgroundGeolocation.m
Original file line number Diff line number Diff line change
Expand Up @@ -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, *))
Expand All @@ -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];
Expand Down