OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.57k stars 373 forks source link

[Bug]: Multiple In-app trigger not getting fired #1523

Open prince-d-simform opened 1 year ago

prince-d-simform commented 1 year ago

What happened?

We have basically two screens one is login and one is the home screen now in the login screen we are triggering an event with one signal which shows the customized welcome pop up now after login as soon as we move to Home Screen we are triggering another event which is Push notification permission pop up now issue is that at the time we move to home screen the login pop up is still there and if user close that pop up then both home screen pop up and login pop up both are getting popped out and because of that user in not able to see home screen notification pop up.

Steps to reproduce?

1. Trigger the first event from the login screen (Or screen one):  OneSignal.addTrigger("login", 'true');
2. Tigger second event from Home screen (Or screen two): OneSignal.addTrigger("promt_notification", 'true');

3. Check-in app Home Screen (Or Second Screen) you will able to see both the Pop up and when we try to dismiss login then it will also dismiss the home screen pop-up.

FYI: When we use session duration instead of in-app trigger event then it's working fine. So we think issue is with in-app trigger events.

What did you expect to happen?

If we close the login pop up then it should have not an effect on the home screen (promt_notification) pop-up.

React Native OneSignal SDK version

"react-native-onesignal": "4.5.1"

Which platform(s) are affected?

Relevant log output

No response

Code of Conduct

jennantilla commented 1 year ago

Thanks for the details! We will work on reproducing this and get back to you as soon as possible.

Yashtoddle commented 2 months ago

@jennantilla what is the update on this bug for this version , is this get resolved in another version ?