Necesidad de sincronizar la aplicación de iPhone entre iPhone / iPad / iPod Touch, etc. ¿Cómo?¿Nube?Zsync?Dropbox?

StackOverflow https://stackoverflow.com/questions/5491203

Pregunta

He recibido solicitudes de la aplicación de mi iPhone, para poder sincronizarla entre el iPhone y el iPad de una persona, o entre dos iPhones en la misma familia, etc. He estado buscando en línea ahora durante algún tiempo, y esto todavía está No estoy claro para mí. Soy un desarrollador bastante nuevo, y sé lo suficiente como para haber recibido una aplicación publicada, pero no soy un programador profesional.

Sé que Dropbox y SugarSyNC usan "la nube", pero aún no los he usado y no estoy seguro de cómo los implementaría para mi base de datos de datos principales. También veé un video para el Zsync de Marcus Zarra, que se ve increíble, pero aún no tengo una aplicación de escritorio, y no estoy seguro de que esa sea la solución para mí.

Descargué la API de Dropbox y la aplicación de muestra y estoy empezando a jugar con él, pero no quiero perder demasiado tiempo si me dirijo a un sendero de conejo. Me encantaría si el iOS le ofreciera algún tipo de opción de sincronización, pero miré y estoy bastante seguro de que no.

Esto parece cosas bastante complicadas. Me encantaría si alguien pudiera apuntarme en la dirección correcta. Tal vez incluso un tutorial si hay uno. Solo para mantener la base de datos de datos básicos sincronizados entre múltiples (tal vez incluso más de 2) iDevices. Cualquier ayuda sería muy apreciada.

¿Fue útil?

Solución 2

Just an update, and an answer to the syncing issue: iCloud seems like it will actually app syncing. I haven't tried it yet, but am planning to implement it. However, since users will only have limited free iCloud storage, and many won't want to pay, I am also implementing Dropbox for Backup/Restore (only). Hope this helps!

Otros consejos

It seems that, as expected, there is no readily available sync option without writing your own algorithm. Even then, it seems to be hit and miss at best as you add users and devices.

I have decided that for me, for now, the best option is DropBox, and using a simple file backup/restore. When you download the DropBox SDK, there is an iPhone App example in there that well demonstrates how to incorporate it into your app.

The issue I am now having has to do with Core Data. Once I overwrite my SQLite file, I am having a difficult time refreshing my data. It works fine if I close and restart the app, but I don't want to have the user do that.

I have tried many solutions from this site, and none of them have worked completely for me yet. I understand that I have to delete and recreate the persistent store, and that I have to delete and recreate my objects, and that I might have to delete and recreate my view controllers in my tab bar. And possibly also my MOC and MOM.

I understand the part about deleting and recreating the persistent store. I can delete my objects, but I am not sure how to re-create them. I think my issue is that I have a tab bar controller and my top level views do not get dealloc-ed. I have found snippets of code here and there but have not been able to piece them together for a solution yet and all I have is one giant mess of commented out code.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top