Firebase Cloud Messaging - Group / Topic / News

0

For a Device, informing the Token, I am able to send a notification normally using FCM.

I now need to send to a group. For example, when I query the return database I have 30 records and I need to send the same push to all.

Will I need to send one by one?

Do I always need the Token?

Remembering that this query may change. It could be 30, 100, 2, ...

Example that I'm using:

{
    "to":"bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...",
    "notification":{
        "title":"Titulo da Mensagem",
        "body":"Texto da Mensagem!"
    }
}
    
asked by anonymous 15.05.2018 / 18:59

0 answers