You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am trying to access the module in the Native side of Java, as I am using OneSignal and there is no background listener in Onesignal so i extended the Notification, and i am able to show the displayIncoming method for the first time to the user, even if the device is in locked mode, but after the dismiss method is called or any other method of the decline/answer is called, it throw an error of "Attempt to invoke virtual method 'boolean com.facebook.react.bridge.ReactApplicationContext.hasCurrentActivity()' on a null object reference"
Any solution for this, I want to use the native method of displayIncoming only to show the UI, and use bridging to catch the answer/declined method only or dismiss() method?
P.S: I am not expert in Java & Android yet. any help is appreciated, Thanks!
The text was updated successfully, but these errors were encountered:
Hello, I am trying to access the module in the Native side of Java, as I am using
OneSignal
and there is no background listener in Onesignal so i extended the Notification, and i am able to show the displayIncoming method for the first time to the user, even if the device is in locked mode, but after the dismiss method is called or any other method of the decline/answer is called, it throw an error of"Attempt to invoke virtual method 'boolean com.facebook.react.bridge.ReactApplicationContext.hasCurrentActivity()' on a null object reference"
Any solution for this, I want to use the native method of displayIncoming only to show the UI, and use bridging to catch the answer/declined method only or dismiss() method?
P.S: I am not expert in Java & Android yet. any help is appreciated, Thanks!
The text was updated successfully, but these errors were encountered: