CouchBase Lite for Desktop

74 views
Skip to first unread message

Sathyesh Selvarajah

unread,
Nov 26, 2014, 2:25:40 AM11/26/14
to mobile-c...@googlegroups.com
Hi All,

      I have a doubt in data syncing between desktop web apps and couchBase server.

     Suppose ,User is using web apps in desktop,and in offline web apps is responsive and user will be able to insert all his data and it will be saved in couchbase lite.

     Now the scenario is like,user comes to online but he isn't using the web apps,but data which is saved locally should be synced to the couchbase server.

     Please comment your feasibility on the above scenario.

    Thanks,
    Sathyesh
    

Jens Alfke

unread,
Nov 26, 2014, 3:55:08 PM11/26/14
to mobile-c...@googlegroups.com

> On Nov 25, 2014, at 11:25 PM, Sathyesh Selvarajah <sathye...@gmail.com> wrote:
>
> Suppose ,User is using web apps in desktop,and in offline web apps is responsive and user will be able to insert all his data and it will be saved in couchbase lite.

I'm not sure what you mean by "web apps in desktop". We support native apps on desktop or mobile, and using PhoneGap you can package a web app as a mobile app and use Couchbase Lite in it; but I don't know of a desktop equivalent of PhoneGap.

> Now the scenario is like,user comes to online but he isn't using the web apps,but data which is saved locally should be synced to the couchbase server.

If the app isn't running, it can't sync. I think what you're asking about is:
1. User makes changes in the app while offline; changes are saved locally
2. User quits the app
3. User's computer/device goes online
At this point the data won't be synced because the app isn't running. They'd have to relaunch the app, then it would sync.

—Jens

Reply all
Reply to author
Forward
0 new messages