I am unable to view Popup Notification on android app created via react-native using OneSignal. I am able to view it in System tray. The eventListener onReceived
function of OneSignal is also called and I can see the notification (only in the system tray) and also able to hear the ding sound, but notification popup did not show.
My code where I configure OneSignal in the main container:
OneSignal.init("ONE_SIGNAL_APP_ID");
OneSignal.inFocusDisplaying(2);
OneSignal.addEventListener('ids', (payload) => store.dispatch(Actions.savePushTokenLocal(payload)));
OneSignal.addEventListener('received', (payload) => store.dispatch(Actions.notificationReceived(payload)));
OneSignal.addEventListener('opened', (payload) => store.dispatch(Actions.notificationOpened(payload)));
OneSignal.configure()
I need to able to view the notification popup when the notification is received, but I am unable to. I have tried almost everything that the documentation has to offer, but all in vain.
Please help me in this.