我们计划使用MobileFirst推送通知服务。
这是我们的计划:
所有用户订阅自己唯一标记。此标记可能是UserID
因此,如果我们想推送特定用户,只需要知道UserID是什么。
问题:
此计划是否是使用mobileFirst标记发送特定用户的最佳做法?
我们可以放入多大的标签尺寸" tagNames"?
var notification = {};
notification.type = 0; notification.message = {}; notification.message.alert = "notification text"; notification.target = {}; notification.target.tagNames = ['Tag1','Tag2'];
答案 0 :(得分:1)
您可以按照描述进行操作,但是,如果您要将userId实现为“标记”,您可能需要考虑使用userId将用户身份验证到MF服务器。
然后,您可以使用userIds数组方法发送单播通知,这样您就不必订阅/取消订阅包含userId的标记。