invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 228 forks source link

onBackgroundEvent not working with Trigger notifications #1083

Closed Roman-ZN closed 2 months ago

Roman-ZN commented 3 months ago

First of all, thanks for a great library, My issue is that onBackgroundEvent is not working and I receive [notifee] no background event handler has been set. Set a handler via the "onBackgroundEvent" method every time the trigger notification arises.

OS: Android 10 & 12

Dependencies: react-native: 0.73.6 @notifee/react-native: 7.8.2

Event usage:

notifee.onBackgroundEvent(async ({type, detail}) => {
    console.log('onBackgroundEvent:', type, detail)
})

AppRegistry.registerComponent(appName, () => App)
github-actions[bot] commented 2 months ago

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.