-
Notifications
You must be signed in to change notification settings - Fork 198
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
[question]: Dublicate foregroundWillDisplay #1012
Comments
Same issue, using foregroundWillDisplay and testing one push notification triggers the event multitple times. However, the amount of triggeres seems to vary, it can be 1 but it can be like 20. |
@theigl I was testing it on iOS and having this issue, will have a look at Android as well |
If it happens on iOS, then it must be a different issue. Thanks for checking. |
removeEventListener does not remove the event lisener the way you would expect, as such, if you are using react and you hope to do cleanup in your useEffect, it wont happen and it will just keep readding addEventListener. So each time you save your stuff it will add another addEventListener, as a solution i just reload the app to have a clean state when testing foregroundWillDisplay. |
How can we help?
How can we help?
I am using the event listeners as described in the setup guide, but when I receive a notification, the events fire more than 10 times. How can I fix this?
Code of Conduct
The text was updated successfully, but these errors were encountered: