Scenario:
start app before signing in to iCloud
Go to settings. This puts app in background. sign in to iCloud.
When app enters foreground CKAccountChanged is signalled , call metaDataquery to list files
When MetaDataQuery executed, it only returns some of the files.
If I stop the app and restart it, then metaDataQuery returns all of the files.
Question: Why is this happening? Is there a timing problem if I execute metaDataQuery from CKAccountChanged notification code?