Touchdb sync needs restart to update the UI

25 views
Skip to first unread message

Andrew Gold

unread,
Dec 21, 2012, 12:35:45 PM12/21/12
to mobile-c...@googlegroups.com
Hi Jens

We're nearly at the end of submitting our app, but during our testing phase we're experiencing intermittent problems with the synchronisation.

The app is a turn based game and the problem is with the updating on the other person's device after a turn has been sent to it. At times it won't refresh the UI and you need to crash out of the app to get the UI to update. This doesn't happen every time, but more often than not.

Any ideas why it wouldn't update, but crashing out and restarting the app does every time?

Thanks

Andy

Jens Alfke

unread,
Dec 22, 2012, 1:21:37 AM12/22/12
to mobile-c...@googlegroups.com

On Dec 21, 2012, at 9:35 AM, Andrew Gold <andyg...@gmail.com> wrote:

The app is a turn based game and the problem is with the updating on the other person's device after a turn has been sent to it. At times it won't refresh the UI and you need to crash out of the app to get the UI to update. This doesn't happen every time, but more often than not.

It’s hard to tell why from that description alone. I would start by turning on logging to see what changes are happening. CouchCocoa logging should be enough, to start with — it’ll let you know when CouchLiveQuery objects update, or when CouchModels reload.

—Jens
Reply all
Reply to author
Forward
0 new messages