Allow App Data to be downloaded to iCloud (Nativescript)

早过忘川 提交于 2019-12-11 18:10:10

问题


My Nativescript iOS app saves some user created data using the nativescript-localstorage plugin. I want to be sure that users have a place to back-up this data.

The most straightforward option seems to be that they can include the app's data in an icloud backup (ie, icloud -> icloud Drive -> then allow the app to be backed up in the drive).

When I have used "$ tns run ios" and run the app locally on my phone, the app properly runs on my phone, but it does not appear as an option for backing up to icloud. On the icloud backup screen where apps are listed that you can choose to backup, my app does not appear.

This might be because it is just a local build, and only full releases (apps received from the app store) can be included in icloud backups, but I have not seen this confirmed anywhere.

Do I need to do anything to enable my app to be available for icloud backup?


回答1:


I have figured out the key piece I was missing--that there are two different types of iCloud uses:

(i) the system-wide iCloud backup that happens automatically if the user turns it on (app developer does not need to take special action) and (ii) the iCloud as a cloud storage solution for certain data that you as the programmer need to configure.

For iCloud with CloudKit to show up as a specific feature of your app, this requires (ii)--and further configuration than just enabling it.

Further detail in my answer here.



来源:https://stackoverflow.com/questions/53544867/allow-app-data-to-be-downloaded-to-icloud-nativescript

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!