Tried to access a JS module before the React instance was fully set up. Calls to ReactContext#getJSModule should only happen once initialize() has been called on your native module. #888
How to reproduce.
Open the app while receiving a notification.
How I get this crash is to send a notification and open the app just before the notification is received.
Am I missing something is there something I can do to avoid this crash.
Fatal Exception: java.lang.IllegalStateException
Tried to access a JS module before the React instance was fully set up. Calls to ReactContext#getJSModule should only happen once initialize() has been called on your native module.
com.facebook.react.bridge.ReactContext.getJSModule (ReactContext.java:159)
com.wix.reactnativenotifications.core.JsIOHelper.sendEventToJS (JsIOHelper.java:21)
com.wix.reactnativenotifications.core.JsIOHelper.sendEventToJS (JsIOHelper.java:13)
com.wix.reactnativenotifications.core.notification.PushNotification.notifyReceivedBackgroundToJS (PushNotification.java:205)
com.wix.reactnativenotifications.core.notification.PushNotification.onReceived (PushNotification.java:67)
com.wix.reactnativenotifications.fcm.FcmInstanceIdListenerService.onMessageReceived (FcmInstanceIdListenerService.java:28)
How to reproduce. Open the app while receiving a notification. How I get this crash is to send a notification and open the app just before the notification is received.
Am I missing something is there something I can do to avoid this crash.
"react-native-notifications": "^4.3.1" "react-native": "0.67.4"
Fatal Exception: java.lang.IllegalStateException Tried to access a JS module before the React instance was fully set up. Calls to ReactContext#getJSModule should only happen once initialize() has been called on your native module. com.facebook.react.bridge.ReactContext.getJSModule (ReactContext.java:159) com.wix.reactnativenotifications.core.JsIOHelper.sendEventToJS (JsIOHelper.java:21) com.wix.reactnativenotifications.core.JsIOHelper.sendEventToJS (JsIOHelper.java:13) com.wix.reactnativenotifications.core.notification.PushNotification.notifyReceivedBackgroundToJS (PushNotification.java:205) com.wix.reactnativenotifications.core.notification.PushNotification.onReceived (PushNotification.java:67) com.wix.reactnativenotifications.fcm.FcmInstanceIdListenerService.onMessageReceived (FcmInstanceIdListenerService.java:28)