简体   繁体   English

将Core Data同步到Dropbox的最佳方法是哪种?

[英]Which is the best way to sync Core Data to Dropbox?

I am new in sync. 我是同步的新手。 I want to sync my iOS application core data to dropbox. 我想将我的iOS应用程序核心数据同步到保管箱。 I search google about this. 我搜索谷歌关于此。 I got two types of API's in DropBox. 我在DropBox中得到了两种API。 One is Sync API and another one is Core API. 一个是Sync API,另一个是Core API。 I don't know which one is the best for my requirement. 我不知道哪一个最适合我的要求。

Please suggest me the right path. 请给我建议正确的道路。 Thanks in advance. 提前致谢。

FYI FYI

Sync API reference link 同步API参考链接

Core API reference link 核心API参考链接

Based on my comment you should clarify what you mean with sync Core Data to Dropbox . 根据我的评论,您应该阐明将Core Data同步到Dropbox的含义。

Sync is a quite complex arguments. 同步是一个相当复杂的参数。

If your goal is to store the entire persistent store file (eg sqlite store) in Dropbox Sync Api is the way. 如果您的目标是在Dropbox Sync Api中存储整个持久存储文件(例如,sqlite存储)。 You can save the file through API. 您可以通过API保存文件。 BUT be aware that the store could corrupt, so avoid it. 但是请注意,该存储可能会损坏,因此请避免使用。 It's a bad idea to share the store file across multiple users. 在多个用户之间共享存储文件是一个坏主意。

If you need to sync data across multiple devices (and not files) Dropbox does not provide this functionality. 如果您需要跨多个设备(而不是文件)同步数据,Dropbox不提供此功能。 By the way Ensembles Framework by Drew McCormack provides a way to sync Core Data apps through Droppox, iCloud, etc.. 顺便提一下,Drew McCormack的Ensembles Framework提供了一种通过Droppox,iCloud等同步Core Data应用程序的方法。

Otherwise you have different options: 1) use iCloud as is, 2) set up your server with your own API to sync data ( http://www.raywenderlich.com/15916/how-to-synchronize-core-data-with-a-web-service-part-1 ) or 3) use ready backend services like Parse or BaasBox . 否则,您有其他选择:1)按原样使用iCloud,2)使用您自己的API设置服务器以同步数据( http://www.raywenderlich.com/15916/how-to-synchronize-core-data-with -a-web-service-part-1 )或3)使用现成的后端服务,例如ParseBaasBox The former is a service where data are stored in Parse servers while the latter can be used with your own server... 前者是一项将数据存储在Parse服务器中的服务,而后者可以与您自己的服务器一起使用...

FYI Dropbox deprecated Sync API and Datastore API in April 2015. It wants you to use its main and only Core API V2. FYI Dropbox在2015年4月弃用了Sync API和Datastore API。它希望您使用其主要的Core API V2。 https://blogs.dropbox.com/developers/2015/04/deprecating-the-sync-and-datastore-apis/ https://blogs.dropbox.com/developers/2015/04/deprecating-the-sync-and-datastore-apis/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM