evollu/react-native-fcm

[feature] get all current notifications in tray at anytime?

Open

#306 opened on Feb 6, 2017

View on GitHub
 (7 comments) (2 reactions) (0 assignees)Java (1,733 stars) (688 forks)batch import
feature requesthelp wanted

Description

Considering the following scenario: The app support notifications for more than 1 type, and each type matters and should be managed individually. Thus, entering a specific page as well as clicking specific notification will trigger the app to dismiss related notifications in tray. And I'm feeling it's better to get all current notification in tray independently instead of relying on sending and tracking local notifications as it will lose tracking when the app has been killed on iOS or cleared from task manager / forced to stop on Android.

I have implement FCM.getDeliveredNotifications() for iOS 10 in my fork https://github.com/JaxGit/react-native-fcm/commit/c192fa69f24baa61dda739463b7372baf04dc4b7 , however I am not so familiar with Android and failed to achieve that for api>=23 https://github.com/JaxGit/react-native-fcm/commit/bc8b1bab816208e25f064ce75db130188650bfbf

Any thoughts? Thanks.

Contributor guide