简体   繁体   English

在安装表中按通道计数通知-Parse.com

[英]Counting notification by channel in Installation table - Parse.com

I wonder if there's any way to counting notification by channel in user Installation table. 我想知道是否有任何方法可以在用户“安装表”中按通道计数通知。 For example if user subscribed to : channel_1, channel_2, channel_3 , when user receive notification for chennel_x, counter for this channel automatically increment value? 例如,如果用户订阅了:channel_1,channel_2,channel_3,则当用户收到chennel_x的通知时,该通道的计数器会自动增加值吗?

What is best practice for counting new notification for users channel ? 计算用户频道的新通知的最佳实践是什么?

I don't think there's anything built into Installations that allows for this, but you could accomplish this: 我认为“安装”中没有内置任何支持此功能的工具,但是您可以实现以下目的:

  1. Add a column for each channel in the Installation table, and increment it when a push is sent. 在“安装”表中为每个通道添加一列,并在发送推送时增加它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM