In my iOS nativescript app, I want users to be able to upload files to iCloud and also retrieve them from iCloud. So it would work like other apps, such as photos, where you can save your photos and retrieve them from iCloud.
The goal is to remove stress on phone storage.
Is this possible?
I earlier asked a question regarding backing up all app data to iCloud (link). It looks like this is possible--users can add the app to an iCloud backup. But this is different than what I am asking here. In that case, a user would have to retrieve all of their phone's data from the backup.
Here, I am looking for a way for users to (1) upload just specific types of files (say, pdf files or media files) to iCloud that they could later (2) download into the app itself.
In other words, they could choose to save and access files using iCloud instead of storing them locally on their phones.
I have seen this question asked earlier on nativescript forums and stackoverflow, but without answers.
So any help is appreciated.