Skip to content

Commit

Permalink
fix(ios): display local notifications in background mode
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Jan 11, 2019
1 parent 54da3f6 commit 432e2f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/react-native/ios/Berty/AppDelegate.m
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 432e2f3

Please sign in to comment.