When the app is in background or closed, received push notifications go to top bar (Notification Center).
Later on tapping one notification will open the app and invoke the onNotification callback for that particular message.
In iOS, getDelievedNotifications returns an array of all pending ones.
How to do it in Android?
Thanks.
(edited: I am using https://github.com/zo0r/react-native-push-notification)