Skip to content

Commit

Permalink
Avoid taking control of UNUserNotificationCenter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Aug 20, 2018
1 parent 0a9b40d commit d9370e9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ios/RCTBackgroundGeolocation/RCTBackgroundGeolocation.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,6 @@ -(void) onAppPause:(NSNotification *)notification
*/
-(void) onFinishLaunching:(NSNotification *)notification
{
if (@available(iOS 10, *)) {
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
center.delegate = self;
}

NSDictionary *dict = [notification userInfo];

if ([dict objectForKey:UIApplicationLaunchOptionsLocationKey]) {
Expand All @@ -392,13 +387,6 @@ -(void) onFinishLaunching:(NSNotification *)notification
}
}

-(void) userNotificationCenter:(UNUserNotificationCenter *)center
willPresentNotification:(UNNotification *)notification
withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
{
completionHandler(UNNotificationPresentationOptionAlert);
}

-(void) onAppTerminate:(NSNotification *)notification
{
RCTLogInfo(@"RCTBackgroundGeoLocation appTerminate");
Expand Down

0 comments on commit d9370e9

Please sign in to comment.