Closed filipealva closed 8 years ago
SwiftDDP does not listen for a network connection itself. This is deliberate, as managing the network connections is sort of boilerplate for iOS apps. However, configuring it to respond to network connections and disconnections with one of the reachability libraries is trivial.
This will cause an error and will rollback locally?
You can configure it to do this, yes. Keep in mind that SwiftDDP is not a datastore; it's designed to be datastore agnostic, so that you can use it with any datastore you want. Given that, you are able to fully configure these behaviors. SwiftDDP does include a simple in memory collection class, but it's only appropriate for simple applications.
Or SwiftDDP listen for internet connection and send the data to server when it is possible?
SwiftDDP doesn't currently do this. I'm looking at adding this functionality in the next release. Right now, you'd be better off managing this yourself, as suggested above.
Have a look and run the Todos apps for a better idea of how it works.
No activity on this one, so closing it...
Hello,
Nice ddp client.
I'm starting a project and looking for a cool (and swift compatible) DDP client.
I have a doubt about updating data locally without network connection. This will cause an error and will rollback locally? Or SwiftDDP listen for internet connection and send the data to server when it is possible?
Thank you so much.