Giter VIP home page Giter VIP logo

Comments (11)

giorgioval87 avatar giorgioval87 commented on June 7, 2024

Same for me, I have an open conversation with Apple Technical Support, they say that "You have not changed anything in your project as far as code or entitlements. This is especially important because your app shoud not have to be modified to work with the new iCloud Drive accounts. You will continue to use the old ubiquity container identifier and that entitlement (it will just be located in a different URL on the server)."

This is not true in my case because I receive from

iCloudFilesDidChange:(NSMutableArray *)files withNewFileNames:(NSMutableArray *)fileNames

14 filenames but only 4 files
10 missing file are hidden on iCloud with .icloud extension and 0 bytes data.

I hope that someone can help us (because tomorrow iOS8 is going out .... )

from iclouddocumentsync.

MaxHasADHD avatar MaxHasADHD commented on June 7, 2024

I think I figured out the issue. I read the documentation and it says the files are synced to iCloud, and iCloud ONLY gives the metadata to the device. So this library is checking if the files are hidden, when the files are not even on the device, just the metadata was received. You have to download the file to the device into the iCloud directory using startDownloadingUbiquitousItemAtURL:error:. So Im going to try and add a method to do this automatically, but I have lots of schools o may be a week or longer before i can make a proper fork and add the support. but thats the method you will need to call to find the files on all devices. It only works when the files is uploaded to the cloud on a single device because that file was automatically moved to the iCloud folder, so thats why it is found. The documentation I read is https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/iCloudDesignGuide/Chapters/DesigningForDocumentsIniCloud.html#//apple_ref/doc/uid/TP40012094-CH2-SW1 and explains it more.

from iclouddocumentsync.

MaxHasADHD avatar MaxHasADHD commented on June 7, 2024

Reading more, files are not downloaded automatically. so this should be checked for each iOS device and files should be downloaded locally. Its pretty hard to tell if the files are on device (from current testing), NSFileManager returns that they are not on device even after they are downloaded which is strange. Ill have it done in a few hours though!

from iclouddocumentsync.

giorgioval87 avatar giorgioval87 commented on June 7, 2024

Please le me know if you can make it work, I'm in office and I can look some code only this evening.
I've read the documentation, I agree with you, Apple changed the way iCloud files are pushed to devices, they are not pushed at all !! I tried some days ago to use startDownloadingUbiquitousItemAtURL:error: without success... i'll try again..

from iclouddocumentsync.

MaxHasADHD avatar MaxHasADHD commented on June 7, 2024

I pushed my fork to Github and created a pull request with the fix, #57

from iclouddocumentsync.

giorgioval87 avatar giorgioval87 commented on June 7, 2024

Thank you! This evening I'll put it into my project an let you know if it works.

from iclouddocumentsync.

MaxHasADHD avatar MaxHasADHD commented on June 7, 2024

Welcome!

from iclouddocumentsync.

giorgioval87 avatar giorgioval87 commented on June 7, 2024

I finally got sync work but only with one iCloud account, after that and with other accounts, iCloud calls remains appended, I hope some Apple side problem... probably yesterday and today they are a little loaded because of the iOS8 release...

from iclouddocumentsync.

micdam69 avatar micdam69 commented on June 7, 2024

Before your fix, I could see the file created by the iPad that had generated and not from other ipad, despite having all the same cloud account.

Now, at last, are displayed on all ipad, any file of my cloud account. In this way I can also implement on my app saving the database allowing the user to restore it anywhere you like: a new ipad, the ipad maybe after the accidental deletion of the app or after a restore. Excellent work. Thanks so much!!

from iclouddocumentsync.

MaxHasADHD avatar MaxHasADHD commented on June 7, 2024

Welcome:]

from iclouddocumentsync.

Sam-Spencer avatar Sam-Spencer commented on June 7, 2024

Looks like Pull Request #57 fixes this issue! Thanks so much to @MaxHasADHD for the fix!! Greatly appreciated. Let me know if there are still issues in v7.4. Happy coding, everyone!

from iclouddocumentsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.