Skip to content

Commit

Permalink
Merge pull request #868 from gponsinet/fix/local-notif-background
Browse files Browse the repository at this point in the history
fix(ios): display local notifications in background mode
  • Loading branch information
Godefroy Ponsinet committed Jan 11, 2019
2 parents 0f1cb7e + 432e2f3 commit 1f6d369
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/react-native/ios/Berty/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
// permit to show local notifications in background mode
[application beginBackgroundTaskWithName:@"showNotification" expirationHandler: nil];
return YES;
}

Expand Down

0 comments on commit 1f6d369

Please sign in to comment.