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

Fix Bridge Reload Issue #592

Merged
merged 1 commit into from Jul 31, 2018
Merged

Fix Bridge Reload Issue #592

merged 1 commit into from Jul 31, 2018

Conversation

Nightsd01
Copy link
Contributor

• When react-native apps get reloaded, the existing bridge is destroyed and a new bridge is created.
• Our SDK was not properly registering the new bridge to receive onReceived and onOpened events for notifications
• Changes the 'registeredEvents' boolean to be an instance variable instead of a static variable.
• Also adds code to remove event listeners when the bridge gets destroyed.

• When react-native apps get reloaded, the existing bridge is destroyed and a new bridge is created.
• Our SDK was not properly registering the new bridge to receive onReceived and onOpened events for notifications
• Changes the 'registeredEvents' boolean to be an instance variable instead of a static variable.
• Also adds code to remove event listeners when the bridge gets destroyed.
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

Successfully merging this pull request may close these issues.

None yet

2 participants