In short, yes. However, not from the console, only with data notifications:
- If you use "Notification" notifications, like the ones you send from
the web console, you do not handle these yourself (the OS displays them), so in that case,
no.
- However, if you use an http client to send "data" notifications, you
receive these in your app's FirebaseMessagingService. In here, you
can check which activity you are in (in however way you like), and
then decide what to do with the notification.
To clarify, you can send both types of notification with an http client
as long as you include both objects in the request you post:
{
"notification":{...}
"data":{ ...},
"to": "/topics/your_topic"
}