Send firebase aka cloud push notification to more than 3 topics at a time

I am trying to find a way to send messages on multiple topics using firebase cloud messaging. I see in the docs that there is a way to send a condition field instead of a to field, and I can write a condition

'TopicA' in topics || 'TopicB' in topics || 'TopicC' in topics

but there is a limitation

Conditions for topics support two statements per expression

This means that I can send a message at the same time to three topics. Is there a way to send a message to more than 3 topics at a time?

+5
source share
1 answer

Limit - these are 3 topics, you can send them through several send requests, for example. send to "a || b || c", then to "d || e || f".

Thus, some users may receive the same message twice, for example. if they are in both sections "a" and "d", so you will need to handle this in your application.

+2
source

All Articles