NSMetadataQuery gets multiple (identical) DidUpdateNotification

134 views Asked by At

I'm working on verifying an app works on iOS 11.

On iOS 10, I start an NSMetadataQuery on the scope NSMetadataQueryUbiquitousDocumentsScope, and I get exactly one NSMetadataQueryDidFinishGatheringNotification. And that's it. That's the only notification received due to the query.

However, on iOS 11, I again get exactly one NSMetadataQueryDidFinishGatheringNotification, but in addition I'm getting what appears to be an infinite number of NSMetadataQueryDidUpdateNotifications, coming in at an approximate rate of 1 every second, all of them with an identical payload.

I will admit that I'm unfamiliar enough with iCloud syncing that I'm not sure exactly what's going on here, but I'm pretty sure that's not correct behavior.

Is this a bug in iOS 11? Can anyone point me in a direction to track down what's going on?

0

There are 0 answers