Better user experience, offline & onIt’s easy to assume that your mobile app will run on a fast and reliable network with great coverage. The reality for your users is often much different. Offline-first applications built with Cloudant Sync provide a better, faster user experience — both offline and online — by storing and accessing data locally and then synchronizing this data with the cloud when an Internet connection is available. As an app developer, it’s tempting to let your mobile backend handle all of your data access. This is a clean and simple architecture, with less code to write. The problem is that networks are unreliable. When the network doesn’t work, neither does your app — and a broken app means unhappy, frustrated users. Data sync can be a challenge. While we can’t eliminate all the complexities, we’ve simplified things with Cloudant Sync: native libraries for iOS and Android that store JSON locally first, and then sync changes to the cloud whenever possible. Deliver a better UX, regardless of connectivity, by taking an offline-first approach and building your app with Cloudant Sync. Use on, users. Use on.
Example AppsReady to learn what it means to implement offline-first code? We have two technical tutorials for you:
- Food Tracker: Our 3-part series picks up where Apple’s Food Tracker tutorial leaves off. Check out part 1 of our tutorial and get started by learning how we replace Apple’s local storage system for a native library that’s ready to handle remote data sync. If you’re new to Swift, this one’s for you!
Location Tracker: This series combines offline-first design with location data in a mapping application. Instead of modifying an existing project, you’ll start with a working project in part 1. With a more sophisticated back end, part 2 will focus on modifying our architecture to adapt to greater scale.
This one deploys in two parts:
Watch Some Syncing
- Location Tracker
(Sync for iOS)
- Cloudant FoodTracker pt. 1 (Sync for iOS)
- Cloudant FoodTracker pt. 2 (Sync for iOS)
- Cloudant FoodTracker pt. 3 (Sync for iOS)
- Creating Google Chrome Extensions (PouchDB)
- QR-code Badge Scanner (PouchDB)