-1

I used this library https://github.com/zo0r/react-native-push-notification for remote push notification, onNotification method fired only when receive notification, no when tapped notification , i need to handle notification click to open specific screen in my app.

NourhanAdel
  • 1
  • 1
  • 4
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 15 '22 at 01:05

2 Answers2

0

Refer rn-firebase plugin. There are methods available for handling notification tap. Inside that method call you can use the react navigation to navigate to particular screen.

https://rnfirebase.io/messaging/notifications.

Aswin
  • 56
  • 1
  • 2
  • 13
0
onAction: function (notification) {
   console.log("ACTION:", notification.action);
   console.log("NOTIFICATION:", notification);
   // process the action
},

add this to the inside configue

  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 05 '23 at 13:34