Skip to content

Commit d9370e9

Browse files
committed
Avoid taking control of UNUserNotificationCenter
1 parent 0a9b40d commit d9370e9

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

ios/RCTBackgroundGeolocation/RCTBackgroundGeolocation.m

100644100755
-12
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,6 @@ -(void) onAppPause:(NSNotification *)notification
375375
*/
376376
-(void) onFinishLaunching:(NSNotification *)notification
377377
{
378-
if (@available(iOS 10, *)) {
379-
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
380-
center.delegate = self;
381-
}
382-
383378
NSDictionary *dict = [notification userInfo];
384379

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

395-
-(void) userNotificationCenter:(UNUserNotificationCenter *)center
396-
willPresentNotification:(UNNotification *)notification
397-
withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
398-
{
399-
completionHandler(UNNotificationPresentationOptionAlert);
400-
}
401-
402390
-(void) onAppTerminate:(NSNotification *)notification
403391
{
404392
RCTLogInfo(@"RCTBackgroundGeoLocation appTerminate");

0 commit comments

Comments
 (0)