_changes api will fire even if i make a change to my cblite locally (i.e nothing new is pulled from SG). My ui update code already is called when locally i add a document so if i use _changes api my code will be called twice (i.e once when locally doc is added on save button or something like that and second when _changes api is called).
Also my UI update code changes from screen to screen so i cannot just have some specific code in _changes api response. Any other way around to just get my function called whenever a pull operation is performed and for ex a new doc is inserted in cblite from SG ? On Friday, 19 December 2014 20:20:19 UTC+5:30, J. Chris Anderson wrote: > > Yes. Use the changes API > <http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/database/get-changes/index.html>, > > not _active_tasks, to get notified of data changes. Active tasks is about > things like replication status or view building, the changes API can tell > you exactly which documents changed. > > Chris > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/353da654-b2b8-4e28-870b-7a38c1b62f26%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
