File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
android/src/main/java/com/geektime/rnonesignalandroid Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public class RNOneSignal extends ReactContextBaseJavaModule implements Lifecycle
48
48
private ReactApplicationContext mReactApplicationContext ;
49
49
private ReactContext mReactContext ;
50
50
private boolean oneSignalInitDone ;
51
- private static boolean registeredEvents = false ;
51
+ private boolean registeredEvents = false ;
52
52
53
53
//ensure only one callback exists at a given time due to react-native restriction
54
54
private Callback pendingGetTagsCallback ;
@@ -434,7 +434,8 @@ public String getName() {
434
434
435
435
@ Override
436
436
public void onHostDestroy () {
437
-
437
+ OneSignal .removeNotificationOpenedHandler ();
438
+ OneSignal .removeNotificationReceivedHandler ();
438
439
}
439
440
440
441
@ Override
You can’t perform that action at this time.
0 commit comments