iOS 9 CloudKit: query does not return anything while connected to cellular network

后端 未结 1 825
既然无缘
既然无缘 2020-12-06 11:28

I\'m developing an app with xcode 7 beta 5. When i run my app on my iphone 6 and i try to connect it to CloudKit if my iphone works in wifi mode all it\'s ok, i display all

相关标签:
1条回答
  • 2020-12-06 11:55

    Open the settings app, find your app, enable 'use mobile data'

    Update: As discussed below Adding the following line of code solved the problem:

    queryOperation.qualityOfService = .UserInteractive
    

    The reason why this works must be a timing / load issue. My initial guess would be that this is caused by this line:

    queryOperation.queuePriority = .VeryHigh
    

    The documentations states for the .queuePriority this: You should use priority values only as needed to classify the relative priority of non-dependent operations.

    The documentation states for the .qualityOfService this: The default value of this property is NSOperationQualityOfServiceBackground and you should leave that value in place whenever possible.

    So please try removing both the .queuePriority and .qualityOfService and see if it's working.

    Update 2: Apparently this is a CloudKit bug. More people have the same issue. Please report it at https://bugreport.apple.com

    0 讨论(0)
提交回复
热议问题