From 363f97aaa1b571aa64f3352369ddc4dabd8ac865 Mon Sep 17 00:00:00 2001 From: Aryan Goharzad Date: Tue, 27 Nov 2018 17:36:27 -0500 Subject: [PATCH] Commented out the content of onHostDestroy in RNOneSignal.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the issue when onReceive would stop working after app going to background. Absolutely no idea what I'm doing ¯\_(ツ)_/¯ --- .../java/com/geektime/rnonesignalandroid/RNOneSignal.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java b/android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java index 811a8632..b2bda4b9 100644 --- a/android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java +++ b/android/src/main/java/com/geektime/rnonesignalandroid/RNOneSignal.java @@ -434,8 +434,8 @@ public String getName() { @Override public void onHostDestroy() { - OneSignal.removeNotificationOpenedHandler(); - OneSignal.removeNotificationReceivedHandler(); +// OneSignal.removeNotificationOpenedHandler(); +// OneSignal.removeNotificationReceivedHandler(); } @Override