homepagepaster.blogg.se

Ios offline folder sync app
Ios offline folder sync app









  1. Ios offline folder sync app android#
  2. Ios offline folder sync app Offline#

If you intelligently restrict your requirements you may find a solution which you can implement yourself, otherwise you may also consider to use a commercial product. Your requirement is not unusual, but the solution might become more complex than you expect - depending on the "business rules" and other reasonable requirements.

Ios offline folder sync app android#

Data Synchronization by Dan Grover or Developing Android REST Client Applications (of course there are many more good articles out there).Ĭaution: you might be disappointed when you expect an easy solution. On the server side, you should read a little for the actual approach you want to go for: i.e. To get notified about changes from your server, I believe that iOS 7 has something new for you. In some cases I needed some extra local data (it is about counting objects), where I have used NSManagedObjectContextObjectsDidChangeNotification.įurthermore, I have used Multi-Context CoreData which sounded quite reasonable to use (I have only two contexts). My ViewController use a NSFetchedResultsController (with delegate=self) to get callbacks on changes. The operation itself reads/writes the database and does the networking stuff.

Ios offline folder sync app Offline#

in my local database, I add a new "sync"-operation to the queue and I do not care about, if the app is online or offline (I added a reachability observer which either suspended the queue or takes it back working of course, I do re-queueing if an error occurs (lost network during sync)). After I read about NSOperationQueue and NSOperation I did a straight forward approach: I have done something similar just in the beginning of this year.

ios offline folder sync app

We would also like to pull the latest data from the server, and have the app keep itself up to date in case of catalog changes or order changes that happened at the Server while the app was offline.Ĭan you guys help me to come with the best design and approach for handling this kind of functionality?

ios offline folder sync app

We would like to provide offline/synchronization capability to users, through which users can view the catalog and create/place orders while offline, and when they come online the order details will be synchronized and updated to our server. The app shows a digital catalog to users and allows them to perform actions like creating and placing orders, among others.Ĭurrently the app only works when online, and we have APIs for all actions like viewing the catalog, creating/placing orders which return JSON data. I am trying to build an offline synchronization capability into my iOS App and would like to get some feedback/advice from the community on the strategy and best practice to be followed to do the same.











Ios offline folder sync app