How to send notification to multiple languages ( each languge as one topic)

633 views
Skip to first unread message

Subin Joseph

unread,
May 26, 2020, 2:21:48 PM5/26/20
to Firebase Google Group
Hi,
I am using firbase sdk to implement web push notification.Here is my idea. 
Whenver a client subscribe to notification, registration token and language preference will be sent to server side and subscribe to the topic (EN, DE etc)  based on the language, using python firebase admin sdk.

But I have read from the firebase docuemtation that, too many subscription request to topic within short period of time will be rejected. (I assume that, in the real world, many customers from different parts of the world will be subscribed to the notification simultaneously)

How can I efficiently collect list registration tokens and subscribe to topic in the real world scenario.? ( should I store the each registration token in a databse at server side and then send the subscrbtion request to topic later? )

Any valuable inputs will be much appreciated. 

Thanks and Regards
Subin

Mehedi Hasan

unread,
May 27, 2020, 3:47:34 PM5/27/20
to fireba...@googlegroups.com
Hi,
I have not read explicitly that too many subscription requests from app has any limitation. Admin-sdk or server side implementation has some upper limit,  may be 1000 tokens per subscription request. Can you share where you read that?     

Apart from that, your approach of multiple language is fair enough and wr have been using that for last 5 months. 

    

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/7243d2ac-e9b6-4067-af3b-24d536c203e2%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages