I am new to use couchbase on iOS env.
I have installed couchbase on cloud and use couchbase lite to develop iOS app for my company.
I used couchbase’s samples (ToDoLite and GrocerySync) as references So far My code runs fine on my Mac. I can pull data remotely until I reset the iOS simulator, suddenly , my code can not pull documents from remote cloud any more…I know reseting simulator will clean the local database. (this is part of the test since the app will be running freshly on another iPhone)
I used GrocerySync and ToDoLite samples to test…After resetting iOS simulator, GrocerySync can still pull data from my remote could but ToDoLite couldn’t.
(GrocerySync does not use CBLModel, authentication)
I searched and read some couchbase forums and tried to use bucket shadowing seems not working. The other solution is to preload db to bundle…that is not doable for me since our content is dynamic (i wish i can use bundle)
Could any one guide me how to pull remote bucket documents to local empty database?
appreciated for your help.