Re: [I] iOS cordova.file.syncedDataDirectory writable/readable but files aren't synced between devices [cordova-plugin-file]

2024-03-26 Thread via GitHub


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

   Ok it seems I misunderstood the `cordova-plugin-file` 
[documentation](https://cordova.apache.org/docs/en/11.x/reference/cordova-plugin-file/#ios-file-system-layout)
 😅
   Thanks for great clarifications @breautek 


-- 
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: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] iOS cordova.file.syncedDataDirectory writable/readable but files aren't synced between devices [cordova-plugin-file]

2024-03-21 Thread via GitHub


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: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] iOS cordova.file.syncedDataDirectory writable/readable but files aren't synced between devices [cordova-plugin-file]

2024-03-21 Thread via GitHub


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

   @JamesIde: Unfortunately no (if you find how to make it works your feedback 
would be very much appreciated). I had to find an other way for saving/syncing 
file. I finally used 
[cordova-plugin-save-dialog](https://github.com/Amphiluke/cordova-plugin-save-dialog)
 which allow a user to save a file in the iOS File folder, then the user can 
choose the Cloud folder. Not the best experience for the user but it works... 
Good luck!


-- 
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: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



Re: [I] iOS cordova.file.syncedDataDirectory writable/readable but files aren't synced between devices [cordova-plugin-file]

2024-03-17 Thread via GitHub


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

   Did you find any solution? @Faksprod 


-- 
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: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org