Sync and retrieve data from iCloud


#1

I have build an app using ionic framework, and the data uses sqlite database and stores in app /documents folder.

Now I want to know is it possible to sync the database into iCloud, so the user can retrieve the data automatically if they reinstall the app or use a new device.

I did search for some solution, some suggest sync to remote database using such as pouchDB or parse. But as for our company policy, we cannot store app data into any other remote place exclude iCloud.

Any idea? Thank you so much.


#2

You can use AJAX to store and retrieve data to any server. Just go through the $http request in documents provided by ionic


#3

Due to the industry policy, I cannot upload any data to the remote server. But for some reasons, it is ok to saving in iCloud.