Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startObserving method call is happening post send event call #1019

Open
bhanuprakash1226 opened this issue Dec 18, 2023 · 0 comments
Open

startObserving method call is happening post send event call #1019

bhanuprakash1226 opened this issue Dec 18, 2023 · 0 comments

Comments

@bhanuprakash1226
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant