react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

`startObserving` method call is happening post send event call

Open bhanuprakash1226 opened this issue 1 year ago • 0 comments

I got an issue with notification open event and post debugging I observed the following behaviour:

As sendEvent:(NSString *)event body:(NSDictionary *)body is used to post the events in RNEventEmitter, when the app is launching, some events are being triggered before the observers for the respective events are set.

In the RNEventEmitter events like notificationOpened, and remoteNotificationsRegistered are being triggered before adding the observers for the respective events in the startObserving method(defined in the same file) here.

How can I make sure that observers are set earlier than the post event trigger?

bhanuprakash1226 avatar Dec 18 '23 17:12 bhanuprakash1226