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

Clicking on scheduled notification restarts the app instead of opening from background #63

Open freakinruben opened 7 years ago

freakinruben commented 7 years ago

Whenever I click on a scheduled notification, my app completely restarts instead of waking up from the background, even though it's still running in the background.

Is this expected behaviour? On iOS my app is able to come back from the background after clicking a notification..

I'm testing with:

rimzici commented 7 years ago

same issue, plus DeviceEventEmitter.addListener('sysNotificationClick', function(e) { console.log('sysNotificationClick', e); });

Notification.addListener('press', function(e) { console.log('press', e); });

neither of these works on launching app from background state, through notification tap.

Is someone maintaining this? please help Thanks

oziks commented 7 years ago

https://github.com/facebook/react-native/issues/9470#issuecomment-240876895 works fine for me!