Question on replication

33 views
Skip to first unread message

Seung Chan Lim

unread,
Apr 15, 2014, 12:39:02 PM4/15/14
to mobile-c...@googlegroups.com
So I have a mobile app (phonegap) using couch base lite that replicates between it and a sync gateway.

I'm doing this:
1) authenticate through the sync gateway
2) register change notification on local couch base lite
3) call push & pull replicate between local couch base lite and sync gateway

What I've noticed is that the first time I do this, nothing replicates in, thus no change notification from the local couch base lite.

Then I _reinstall_ the app (not restart, reinstall) and all of a sudden I see replication happening, and thus change notification from the local couch base lite.

Can anyone help me understand this behavior?

thank you,

slim

Jens Alfke

unread,
Apr 15, 2014, 1:18:10 PM4/15/14
to mobile-c...@googlegroups.com, Chris Anderson

On Apr 15, 2014, at 9:39 AM, Seung Chan Lim <djs...@gmail.com> wrote:

What I've noticed is that the first time I do this, nothing replicates in, thus no change notification from the local couch base lite.
Then I _reinstall_ the app (not restart, reinstall) and all of a sudden I see replication happening, and thus change notification from the local couch base lite.

I don’t know why this would be happening. (It’s especially weird that reinstalling the app would make a difference since that should reset all app state.) But this is about the third time I’ve heard this recently, each time from a developer using PhoneGap, so I’m wondering if there is a bug in our PhoneGap wrapper, or at least something unintuitive about the way it works.

cc:ing JChris who is our PhoneGap expert.

—Jens
Reply all
Reply to author
Forward
0 new messages