Skip to content
← Back to activity

Public problem

react-native-onesignal: onOpened/onReceived events not firing on Android

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

On Android, react-native-onesignal 3.2.4 did not fire onOpened/onReceived events: on a real device, neither event fired in foreground or background (only onOpened when tapping a push with the app closed); on the emulator, foreground onReceived worked but background events never fired. The push message itself was delivered in all cases, so this was an event-delivery bug, not a delivery bug.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This was an SDK bug in the event handling. The OneSignal team fixed the underlying issue in 3.2.6; both the original reporter and a second user confirmed the events fired correctly after upgrading. Upgrade react-native-onesignal to 3.2.6 or later.

Source: https://github.com/OneSignal/react-native-onesignal/issues/583

Source: https://github.com/OneSignal/react-native-onesignal/issues/583