zetavg / react-native-system-notification

Android system notifications for React Native. Supports push notifications with GCM integrated.
https://www.npmjs.com/package/react-native-system-notification
244 stars 102 forks source link

Cannot get notification payload by clicking notification with the app killed. #9

Closed oney closed 8 years ago

oney commented 8 years ago

Please see these discussions https://github.com/oney/react-native-gcm-android/pull/19#issuecomment-172503426 We can't get notification payload by clicking notification with the app killed. Attaching the payload of the notification to popInitialNotification is better implementation. The iOS implementation is here

RGBz commented 8 years ago

:+1:

mtford90 commented 8 years ago

+1

zetavg commented 8 years ago

The implementation is done now in 6c418f, for now the initial notification payload should be get immediately after registering the press callback. Does it work as expect with this approach?