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
4848 private ReactApplicationContext mReactApplicationContext ;
4949 private ReactContext mReactContext ;
5050 private boolean oneSignalInitDone ;
51- private static boolean registeredEvents = false ;
51+ private boolean registeredEvents = false ;
5252
5353 //ensure only one callback exists at a given time due to react-native restriction
5454 private Callback pendingGetTagsCallback ;
@@ -434,7 +434,8 @@ public String getName() {
434434
435435 @ Override
436436 public void onHostDestroy () {
437-
437+ OneSignal .removeNotificationOpenedHandler ();
438+ OneSignal .removeNotificationReceivedHandler ();
438439 }
439440
440441 @ Override
You can’t perform that action at this time.
0 commit comments