'How to display previous push notification using fcm in list-view

Currently i am working in a project which receive Push notification using FCM, i am receiving notification quite well.

In next part of project , i have to make an ativity which will display all the previous notification. kind of action center. any clue will help me a lot.



Solution 1:[1]

For getting previous notifications, you have to save your notification in your database before sending the push notification.

After that you can fetch all the previous notification's data from your database. You can use firebase realtime database or firebase cloud firestore database to save the data.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1