Skip to content
This repository was archived by the owner on Sep 24, 2021. It is now read-only.

Commit a1b9b89

Browse files
committed
fix(ios): treat events when app is inactive as background events
1 parent e35fd23 commit a1b9b89

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ios/RNNotifee/NotifeeApiModule.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,11 @@ - (void)didReceiveNotifeeCoreEvent:(NSDictionary *_Nonnull)event foreground: (BO
8080
}
8181

8282
- (void)sendNotifeeCoreEvent:(NSDictionary *_Nonnull)eventBody foreground: (BOOL)foreground; {
83-
dispatch_after(
84-
dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
8583
if (RCTRunningInAppExtension() || !foreground ) {
8684
[self sendEventWithName:kReactNativeNotifeeNotificationBackgroundEvent body:eventBody];
8785
} else {
8886
[self sendEventWithName:kReactNativeNotifeeNotificationEvent body:eventBody];
8987
}
90-
});
9188
}
9289
// TODO(helenaford): look into a custom format style for React Native Method signatures
9390
// clang-format off

0 commit comments

Comments
 (0)