react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Add Multiple callback for onNotification.

Open ankit5174 opened this issue 4 years ago • 4 comments

Question

Can we add multiple callback of onNotification. I need the on notification call back so that i can integrate the deep linking linking using react navigation. Following this tutorial which uses rnfirebase but i am trying to replace it with this library cause it gives feature like userInteraction even when app is in forground which is missing in rnFirebase.

ankit5174 avatar Jun 18 '21 17:06 ankit5174

Hi @ankit5174 I don't understand you needs. Up to you to call multiple handler if needed, only one callback is available. Regards

Dallas62 avatar Jun 18 '21 17:06 Dallas62

If you look at below snippet, its uses const unsubscribeNotification = messaging().onNotificationOpenedApp( to listen to on user interaction with the notification. Using the react native push notification library i can register for a single callback. But actually i want to listen at multiple places.

https://gist.github.com/naishe/fbc0ca0a3fa81da1872c96902d4c3140#file-app-tsx ,

ankit5174 avatar Jun 18 '21 18:06 ankit5174

@Dallas62 need help

how to send large icon in fcm remote notification bcs whenever I send any notification from cloud function I didnt see icon in right side if app is not running but I see if app is running

so can u help me how to set large icon

heavell7870 avatar Jun 19 '21 18:06 heavell7870

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 20 '22 00:06 github-actions[bot]