From 70a966c90133c61c822bd9e38a33979bc852512a Mon Sep 17 00:00:00 2001 From: Erik Rothoff Andersson Date: Wed, 28 Oct 2020 11:12:41 +0100 Subject: [PATCH] Fixes #627 - First foreground notification is not visible (#685) I can't see a reason why `RNNotifications.m` should have its own instance of `RNNotificationsStore` so I'm certain it's a bug. That was what caused the notifications to not be shown the first time --- lib/ios/RNNotifications.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ios/RNNotifications.m b/lib/ios/RNNotifications.m index 4c1fb865d..ac4dd8392 100644 --- a/lib/ios/RNNotifications.m +++ b/lib/ios/RNNotifications.m @@ -18,7 +18,7 @@ @implementation RNNotifications { - (instancetype)init { self = [super init]; - _store = [RNNotificationsStore new]; + _store = [RNNotificationsStore sharedInstance]; _notificationEventHandler = [[RNNotificationEventHandler alloc] initWithStore:_store]; return self; }