Get the code
Watch the demo
by Shikha Maheshwari, Shivakumar HR, Devipriya Selvarajan | Updated October 30, 2018 - Published October 26, 2018
CloudMobile developmentObject StorageSecurity
Note: This pattern is part of a composite pattern. These are code patterns that can be stand-alone applications or might be a continuation of another code pattern. This composite pattern consists of:
Learn how to develop secure offline-first mobile apps with encrypted and automated data synchronization. In this code pattern, learn how to implement secure offline synchronization in hybrid mobile apps by using JSONStore from IBM Mobile Foundation, the Ionic framework, IBM Cloudant, and IBM Cloud Object Store. You learn about implementing offline user authentication in mobile apps, storing data securely (with encryption) on the mobile device, and automatically synchronizing downstream and upstream data and images.
To ensure that your enterprise mobile apps work seamlessly in both offline and online modes, you need to use encrypted on-device storage and automate data synchronization with the backend databases.
While you can achieve automatic data synchronization with CouchDB or Cloudant No SQL DB databases (because they implement the CouchDB Replication Protocol), JSONStore collections in IBM Mobile Foundation provides a powerful alternative for achieving offline sync in both hybrid and Android native or iOS native apps.
JSONStore provides persistent storage of JSON documents encrypted using AES 256-bit encryption, and automated data synchronization with CouchDB or Cloudant databases. In addition, the robust synchronization architecture of JSONStore allows you to extend synchronization to traditional systems of record such as RDBMS or ERP backends.
When you have completed this code pattern, you will understand:
Other users who click on refresh button on the home page (and those who log in anew) are shown the updated list of problem reports.
The device must have been previously online, and user authentication must have previously succeeded, such that the JSONStore password was set.
Other users who click on refresh button on the home page (and those who log in anew) can see the newly reported civic problem and its details.
Find the detailed steps for this pattern in the README. Those steps will show you how to:
Get the Code »
IBM Cloudant Local (NoSQL)Mobile development+
Back to top