I am using CouchDB for my iOS application.
Below is my application stream,
When my application launches for the first time, it replicates the remote database using xyz: a ... @ mmm.iriscouch.com / databasename.
if replication is successful, everything works as expected, but sometimes replication fails. In this case, I get the following error with the log
1> OTHER: {'EXIT',{error,timeout,
and it will not replicate until I uninstall the application and reinstall the application on the device / simulator. is there a callback / delegate for this?
Somehow, when I try to synchronize with an empty database, I never get an error, when I have contents in the database, I get an error!
It is also difficult to reproduce on the simulator, while on the iPad the appearance is 90%.
I put the sample project in the git hub https://github.com/interactiveblueprints/CouchDBSyncTest (for couchDB user password, please read readme.txt)
- this sample code is just a modification of PhotoLocations. Sample application (https://github.com/couchbaselabs/iOS-Demo-PhotoLocations), but modified according to my requirement.
I also included error logs at http://dl.dropbox.com/u/35814355/ErrorLog.rtf
Waiting for an answer, Krishna.
source share