I have implemented FCM (Firebase Notification) and everything is working fine on all devices except Samsung Galaxy S8 and One-Plus 3
When application running in foregrou
FCM sends notification in two forms inside data tag and another one in notification tag. When the app is open the data is triggered and when the app is cleared from the background, FCM tries to handle the notification on its own using notification tag. What you can do is by asking the server guy only to send with data as a key and not notification. Then you can handle the notification.
For more information read this link