Skip to content

Commit

Permalink
Merge pull request OneSignal#592 from geektimecoil/bridge_reload
Browse files Browse the repository at this point in the history
Fix Bridge Reload Issue
  • Loading branch information
Nightsd01 authored Jul 31, 2018
2 parents 76299d1 + afe2777 commit 7f0f731
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class RNOneSignal extends ReactContextBaseJavaModule implements Lifecycle
private ReactApplicationContext mReactApplicationContext;
private ReactContext mReactContext;
private boolean oneSignalInitDone;
private static boolean registeredEvents = false;
private boolean registeredEvents = false;

//ensure only one callback exists at a given time due to react-native restriction
private Callback pendingGetTagsCallback;
Expand Down Expand Up @@ -434,7 +434,8 @@ public String getName() {

@Override
public void onHostDestroy() {

OneSignal.removeNotificationOpenedHandler();
OneSignal.removeNotificationReceivedHandler();
}

@Override
Expand Down

0 comments on commit 7f0f731

Please sign in to comment.