b8ne / react-native-pusher-push-notifications

Manage pusher interest subscriptions and notification events in Javascript.
MIT License
98 stars 86 forks source link

On click notification when app is killed #74

Closed vuthanhtrung0504 closed 3 years ago

vuthanhtrung0504 commented 3 years ago

Do we have any way to get the payload or extra data when user clicks on the notification to open the app when the app is killed?

Humni commented 3 years ago

See the readme for reference: https://github.com/b8ne/react-native-pusher-push-notifications#data-handling-android

vuthanhtrung0504 commented 3 years ago

That did not help at all. Your doc just reference handle on the native side, not js side, and also it is for android, how about ios?

gabrielbezerra81 commented 3 years ago

I recommend using react-native-notifications for Android and its working perfect. Making it work without that library needs a lot of hacks in my experience. For iOS I'm using @react-native-community/push-notification-ios, still need to check if works nice with react-native-notifications.

Humni commented 3 years ago

@vuthanhtrung0504 we have this working from the readme in several applications - if you have a specific issue please provide details around how to replicate it and a code example would be very useful.