This can only be done using the native API. You’d probably need to get the source code of the CBL PhoneGap plugin, add a couple of lines of code to tell CBL to install the database file from your app package, and then rebuild the plugin.
Could he overwrite the local database file pushing it into the corresponding directory path? For example in Android he could the /data/data/app_pakacke/files/couch_db.cblite for his own prebuilt .cblite file
The project is cordova couchbase lite based, similar to couchbase sample of todolite project. Ideally install pre built cblite for both ios and android, but currently we have been working on it for IOS
If you want help you really need to give details of what is going wrong and what you need. Just pointing at our docs for the Database class doesn’t tell me anything. I don’t know what you mean about a workaround for ToDoLite (a workaround for what?)
I’m not a support engineer, I work on developing Couchbase Lite. I think good support is important and I try to spend time here answering questions, but the questions have to be clear and understandable.