CloudKit "aggregate" 是否更新更改通知?

Does CloudKit "aggregate" update change notifications?

如果客户端多次更改同一条记录,订阅者会收到多条通知,还是只有一条?有可能只得到一个吗?如果应用程序启动时间很长,那么这可以显着减少网络使用量。

事实上,您不能假设所有通知都到达应用程序 didReceiveRemoteNotification

当一个应用程序didReceiveRemoteNotification被调用时,你应该也执行一个CKQueryNotification,看看是否有更多的通知需要处理。

什么通知到达应用程序 didReceiveRemoteNotification 取决于 icloud 上的总负载和在某个时间限制内发送的通知数量。