Thanks for the reply. Yes, the ability to write files would be great!
I am just wanting to make sure that when the user decided to switch to a new iPhone that they don’t lose all of their information they stored on their previous one. There needs to be a way to make sure that users don’t lose their data when they switch from one phone to another.
That being said, I am not sure what is natively available to Xojo without a plugin. I am sure iCloud storage is available with third party plugins.
If it were me (and seeing you have a pro license), I would stand up a server with a web service which maintains user data and settings, and have it synch with a local SQLite storage for offline availability. It would be more work than using something like a Core Data iCloud synch, but you would have complete control over how it worked as well as being prepared to offer greater functionality down the road.
I’m not sure how much this helps - but having a real backend to an app I think is really the best way to go. Down the road if you decide to offer an Android version (or other platform), you will already have the functionality instead of being locked into iCloud.
@Jeremie_L I would love to see a sample project as well. Thanks for offering to shed some light on this. I really need to learn how to research Apple’s docs and implement declares to add iOS functionality.
I confess Apple’s docs are as impenetrable as the MBS cloud plugin documentation to me.
I can’t identify anything useful in either at the moment.
Key Value pairs are too small to be useful to me at 64kb, and I can’t work out how to push , pull , or enquire on a file-by-file basis.
Happy to hold my hand up and look stupid here, but the people who brought us ’ NSUbiquitousKeyValueStoreDidChangeExternallyNotification’
clearly didn’t have clarity and widespread understanding in mind.
iCloud files are merely a folder on your Mac in the user Library. You read and write to that folder as you would to any other folder on a hard drive in your Mac.
The location of my iCloud docs is /users/bart/Library/Mobile Documents/com~apple~CloudDocs
MacOS takes care of updating the files actually stored in the cloud, and keeps the files in the cloud synchronized with the files on your Mac.
Here is the command I use to save a data file named [BalCarry] into a subfolder [DataBud] in a folder named [Budget! 2022] in iCloud:
NOTE: my user name is [bart].
+++++++++++++++++++++++
balString = " a whole bunch of data joined into one string "
What happens when moving to a new phone if the user has no iCloud active and the files are only stored locally? I guess the only way to retain these data is a local backup on a Mac, played back to the new iPhone during setup.