OneSignal / OneSignal-Cordova-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Ionic, PhoneGap CLI, PhoneGap Build, Cordova, or Sencha Touch app with OneSignal. Supports Android, iOS, and Amazon's Fire OS platforms. https://onesignal.com
Other
251 stars 199 forks source link

[question]: Dublicate foregroundWillDisplay #1012

Open ByDodo opened 3 months ago

ByDodo commented 3 months ago

How can we help?

How can we help? I am using the event listeners as described in the setup guide, but when I receive a notification, the events fire more than 10 times. How can I fix this?

Code of Conduct

jennantilla commented 3 months ago

Hello @ByDodo thanks for reaching out! We're looking into this. In the meantime, are you able to share the debug log from your device reproducing this? Thanks!

hen68 commented 3 weeks ago

Same issue, using foregroundWillDisplay and testing one push notification triggers the event multitple times. However, the amount of triggeres seems to vary, it can be 1 but it can be like 20.

theigl commented 3 weeks ago

This is probably caused by #1015 as well.

@hen68: Can you confirm that this only affects Android?

hen68 commented 3 weeks ago

@theigl I was testing it on iOS and having this issue, will have a look at Android as well

theigl commented 3 weeks ago

If it happens on iOS, then it must be a different issue. Thanks for checking.