I've developed and Android app that receives Push Notifications using Firebase. My code is based on Firebase/Google official docs (https://firebase.google.com/docs/cloud-messaging/android/client and https://firebase.google.com/docs/cloud-messaging/android/receive) and has nothing special, it has the service that extends FirebaseMessagingService and the service that extends FirebaseInstanceIdService. Everything is working ok.
But this app is receiving more notifications than expected and my client wants the app to stack the notifications it receives. I've seen tutorials with the solution working over the old GCM mechanism but nothing with FCM. So my doubts are: is possible to stack received push notifications with FCM? or has this to be somehow coded in the backend?