We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac3e012 + 850f1b0 commit a24559bCopy full SHA for a24559b
android/src/main/java/com/onesignal/rnonesignalandroid/RNOneSignal.java
@@ -165,6 +165,11 @@ private void removeObservers() {
165
}
166
167
private void removeHandlers() {
168
+ if(!oneSignalInitDone) {
169
+ Log.i("OneSignal", "OneSignal React-Native SDK not initialized yet. Could not remove handlers.");
170
+ return;
171
+ }
172
+
173
OneSignal.getInAppMessages().removeClickListener(rnInAppClickListener);
174
hasAddedInAppMessageClickListener = false;
175
OneSignal.getInAppMessages().removeLifecycleListener(rnInAppLifecycleListener);
0 commit comments