[英]Manage apns notification tokens on client side
When Alice sends Bob a message (while Bob is offline) Bob should be notified. 当爱丽丝向鲍勃发送消息时(鲍勃离线时),应通知鲍勃。 In other implementations the server queries a database for Bobs notification token and sends Bob a notification.
在其他实施方式中,服务器向数据库查询Bobs通知令牌,并向Bob发送通知。
To avoid this extra query I would like to manage the notification tokens on client side (user know each others token). 为了避免这种额外的查询,我想在客户端上管理通知令牌(用户彼此了解令牌)。 This would allow Alice to embed Bobs notification token in every message.
这将允许Alice在每个消息中嵌入Bobs通知令牌。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.