We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 76299d1 + afe2777 commit 7f0f731Copy full SHA for 7f0f731
android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java
@@ -48,7 +48,7 @@ public class RNOneSignal extends ReactContextBaseJavaModule implements Lifecycle
48
private ReactApplicationContext mReactApplicationContext;
49
private ReactContext mReactContext;
50
private boolean oneSignalInitDone;
51
- private static boolean registeredEvents = false;
+ private boolean registeredEvents = false;
52
53
//ensure only one callback exists at a given time due to react-native restriction
54
private Callback pendingGetTagsCallback;
@@ -434,7 +434,8 @@ public String getName() {
434
435
@Override
436
public void onHostDestroy() {
437
-
+ OneSignal.removeNotificationOpenedHandler();
438
+ OneSignal.removeNotificationReceivedHandler();
439
}
440
441
0 commit comments