79188154

Date: 2024-11-14 10:00:38
Score: 0.5
Natty:
Report link

When you set autoCancel: false in Notifee, it ensures the notification does not automatically disappear after the user interacts with it (e.g., taps or opens it).

You've already done this, so it should work for you.

Additionally, you've included the following lines:

fullScreenAction: {
  id: 'default', // Specifies the action ID for full screen
  mainComponent: 'custom-component',
}

This ensures the notification will open in full-screen mode. Your setup seems correct. it will be full screen and it will close only in case where user interact with it. if it doesn't your problem will be somewhere else.

Read the link for official Documentations:

https://notifee.app/react-native/reference/notificationandroid#autocancel

https://notifee.app/react-native/docs/android/behaviour#full-screen

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Izaz Ahmad