允许将应用程序数据下载到iCloud(本机脚本) [英] Allow App Data to be downloaded to iCloud (Nativescript)

查看:226
本文介绍了允许将应用程序数据下载到iCloud(本机脚本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Nativescript iOS app使用 nativescript-localstorage插件保存了一些用户创建的数据.我想确保用户有一个备份这些数据的地方.

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.

最直接的选择似乎是它们可以将应用程序的数据包括在icloud备份中(即icloud -> icloud Drive -> then allow the app to be backed up in the drive).

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).

当我使用"$ tns run ios"并在手机上本地运行该应用程序时,该应用程序可以在我的手机上正常运行,但是它没有作为备份到icloud的选项出现.在列出您可以选择备份的应用程序的icloud备份屏幕上,我的应用程序没有出现.

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.

这可能是因为它只是本地版本,并且icloud备份中只能包含完整版本(从应用程序商店接收到的应用程序),但是我在任何地方都没有看到这一点.

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.

我需要做些什么来使我的应用程序可用于icloud备份吗?

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

推荐答案

我已经弄清楚了我缺少的关键部分-iCloud使用了两种不同类型:

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

(i)如果用户将其打开(应用程序开发人员无需采取特殊措施)会自动发生的系统范围的iCloud备份,以及(ii)iCloud作为针对您作为某些数据的云存储解决方案的解决方案程序员需要配置.

(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.

要使带有CloudKit的iCloud作为您应用程序的特定功能显示,这不仅需要启用(ii),而且还需要进行更多配置.

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.

这篇关于允许将应用程序数据下载到iCloud(本机脚本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆