I’ve found that my mobile app only recognizes data sent directly through Sync_Gateway to the Couchbase Server, so all data previously inserted into CouchbaseServer (configuration mostly: User Data, etc) using “external” tools (e.g. JAVA SDK) cannot be read by the mobile App.
How can I read the previous/existent data without having to re-enter it using Sync_Gateway?
Add a new database-level property “importDocs” to your config file, with value ‘true’. Unversioned documents will be detected when the gateway starts up (before it starts serving to clients) and sync metadata will be added.
But don’t write directly to the bucket after starting the sync gateway. After the import process, changes made to documents need to go through the gateway’s APIs (either via replication from client apps, or via the REST API directly.)