Sharing and Syncing Data between iOS Apps and App Extensions across devices
This post discusses how to use Couchbase Mobile to share data between an iOS App and its corresponding App Extension across devices. It extends the previous discussion on using Couchbase Lite as a standalone, embedded data store for sharing data between an iOS App and its App Extension on the same device. The Sync Gateway is used to enable data synchronization across multiple devices. The sample task list app demonstrates how tasks are stored in a local Couchbase Lite database and synced with the remote Sync Gateway, allowing changes to be made available to apps/app extensions on other devices. The architecture involves setting up a Shared Container for both the App Extension and App processes to access the Couchbase Lite database. Code walkthroughs are provided for the DatabaseManager and TaskPresenter classes, which handle Couchbase Lite database management functions and UI interactions, respectively.
Company
Couchbase
Date published
Nov. 28, 2017
Author(s)
Priya Rajagopal, Senior Director, Product Management
Word count
2281
Language
English
Hacker News points
None found.