C# Send notification to device group with unique custom data FCM

匿名 (未验证) 提交于 2019-12-03 02:38:01

问题:

I am aware that I can supply registration_ids to the JSON request to send to multiple devices in the form of string arrays. However, I have a unique token that I want to send to each of those registration_ids. How can I achieve that without simply looping the send request for the number of devices I wish to send to:

registration_ids: [1,2,3,4,5] data: {   //if id==1, include the necessary token I wish to include. } 

回答1:

Unfortunately, if you are attempting to send something unique to each user, you'll have to send each unique payload separately.

What I can think of (just assuming a scenario) is for you to send a specific parameter (an ID of some sort) and have the client app interpret it depending on the user. Hope that makes sense.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!