So, to set up notifications when the application is in the background, as Diego noted, the only way is to create a notification yourself. Adding the "data" key to the notification payload results in the onMessageReceived () callback, on which you can create any notification and notify about it.
Thing is, Firebase, API. . API .