Questions
- How does the CloudKit server notify apps about updates?
a) Background Fetch. b) Silent push notifications. c) It doesn't. Apps should ask for changes on launch.
- Which object do you send along with a fetch request to CloudKit so you only receive new changes?
a) A change token. b) A timestamp. c) The last object you received updates for.
- How does your code know whether a certain
CKRecord
is a movie, family member, or something else?
a) Through recordName
.
b) By checking what properties are available.
c) Through recordType
.
- What kind of data do you have to store alongside your objects in Core Data to be able to properly sync local data with CloudKit?
a) Their change tokens. b) The encoded CloudKit metadata. c) The zone they were retrieved from.
- What's a good place to store server change tokens?
a) Core Data.
b) In an array.
c) UserDefaults
.
- Why is it smart to import CloudKit data on a background managed object context?
a) Because you don't know how long the import will take and you don't want...