Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Data Synchronization and Offline iOS Apps with IBM Bluemix

DZone's Guide to

Data Synchronization and Offline iOS Apps with IBM Bluemix

· Java Zone
Free Resource

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.

One of the main benefits of IBM Notes is the ability to access applications when you're offline. There is a built-in replication functionality that takes care about data synchronization between clients and servers. I've always liked that capability since even today, for various reasons, people are not always online. 

Yesterday I played with a very similar feature - data synchronization and offline iOS apps with IBM Bluemix. Very powerful. 

There is a Bluemix service Data for iOS. "Data for iOS 8 is a beta offering that extends the Cloudant NoSQL DB service. This beta provides a native feel for storing mobile data in the cloud, while the management and implementation of the data store is hidden." 

In your iOS app you can use native Swift or Objective-C to access data in local and remote databases. Native objects are mapped to the underlying JSON document format. Data synchronization can be triggered easily via APIs. Check out the CloudantToolkit Framework for iOS for the list of APIs. 

Here is a screenshot of the BlueList sample: 



In order to try it yourself follow the instructions on the IBM MobileFirst Platform for iOS Bluelist Sample App landing page. You can find the replication code inListTableViewController.swift

Bitbucket is the Git solution for professional teams who code with a purpose, not just as a hobby. Get started today, it's free.

Topics:

Published at DZone with permission of Niklas Heidloff, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}