I configured my app to work with FCM Data messages, push notifications are coming when the app is in foreground and background state, BUT NOT if the app is terminated (swipe up from multitasking).
As far as I know, if you are using the Data messages you will be in charge of handling the received message and present a notification to the user. Otherwise, if you are using Notification Messages, FCM is handling the message for you and directly displays a notification if the app is in background/closed.
In my app I must use Data messages and therefore have problems with push notifications when app is killed.
From the answers of this post IOS data notifications with FCM, Data messages can't be received in iOS if the app is killed.
I did the following test: I sent a Notification message (instead of Data message) from Firebase Console and the push notification WAS showing up even if the app was closed.
How can I solve the problem in this situation?