How to get CKRecord info from CKDatabaseNotification while perform changes on shared database?

孤人 提交于 2019-12-01 12:37:50

问题


This is userInfo I receive from server when change one property:

[AnyHashable("aps"): {
    "content-available" = 1;
}, AnyHashable("ck"): {
    ce = 2;
    cid = "iCloud.pl.blueworld.fieldservice";
    met =     {
        dbs = 3;
        sid = "E93874B3-53B4-4CD7-83A0-157DDE3B1094";
        zid = fieldservice;
        zoid = "_c42e727205f9a1c05eab6df6298d51ca";
    };
    nid = "46a3d259-11c5-4212-9bef-b9aef4ea5bf8";
}]

I can quickly create object:

CKNotification(fromRemoteNotificationDictionary: userInfo)

but now how can I receive its record ID? I need to perform changes on UI, but need to know what object has been changed.

来源:https://stackoverflow.com/questions/45711832/how-to-get-ckrecord-info-from-ckdatabasenotification-while-perform-changes-on-sh

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!