breautek commented on issue #558:
URL: 
https://github.com/apache/cordova-plugin-file/issues/558#issuecomment-2011996425

   I believe syncedDataDirectory is working as intended here.
   
   The directly is synced with iCloud, which means users that backups their 
device can restore the app and the files for that app install. It doesn't mean 
that file will be synced across different devices. If it did, it's also the 
wrong way to do it (see last paragraph).
   
   When you install an iOS app, it will have an install ID, which is something 
that is randomly generated. These ids may not match across devices, even for 
the same app. This part I'm not really sure on, but I think syncedDataDirectory 
effectively links against an install id, rather than a bundle id, making the 
files synced to iCloud only accessible by the app install that put the files 
there. Synced directories in this context effectively means the files will be 
saved as part of itunes backups.
   
   Syncing files across devices I believe requires the use of [other 
APIs](https://developer.apple.com/documentation/uikit/documents_data_and_pasteboard/synchronizing_documents_in_the_icloud_environment?language=objc)
 that isn't really a File System based to manage documents on iCloud, and to 
resolve potential version conflicts, should remote have a version that local 
doesn't have, and local also has an update that remote doesn't have. This is 
something not exposed by the file plugin.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to