I'm trying to add a new element to a listview when a notification is received(without users click).
I need to listen to received notification on my fragment, then add a new element to adapter based on notification info.
How can i listen to new notifications from a fragment?
I've already implemented the Firebase Cloud Messaging architecture.
-MyFirebaseMessagingService......
Can someone help me?