wix / react-native-notifications

React Native Notifications
MIT License
3.25k stars 764 forks source link

Detox e2e does not work with Background Notifications #931

Closed qwilbird closed 1 year ago

qwilbird commented 1 year ago

Hi, I am testing the example project along with the detox e2e. I can see that there is currently no test covering the usecase of 'background notifications' where content-available=1.

I have added a test where I try the following steps: await device.sendToHome(); await device.sendUserNotification(createBackgroundNotification({link: 'background/notification/click3'})); await device.launchApp({newInstance: false});

with createBackgroundNotification() containing content-available=1.

However despite adding logs everywhere, I can see that the handler registerNotificationReceivedBackground is never fired.

Can you please advise how to e2e background notifications? Thanks

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 1 year ago

The issue has been closed for inactivity.