> On May 20, 2015, at 8:36 AM, [email protected] wrote: > > - JS Wrappers internally call Rest APIs which internally call Cardova Plugin > which uses the CouchbaseLite and CouchbaseLiteListener frameworks to update > data in SQLLite storage. Is this understanding correct ?
The plugin isn’t involved. The REST API goes directly to the CouchbaseLiteListener’s handlers. (All the plugin does is initialize Couchbase Lite. That’s why there’s so little code in it.) > - So in a Cardova application for every REST API invoked an equivalent plugin > code that gets called. If that is the case how do the app differentiate when > it needs to use the REST API to call the server or it needs to divert the > REST API calls to the Cardova Plugin . The app never needs to talk directly to a server. It only talks to Couchbase Lite. —Jens -- 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/61004A68-91DA-457F-8F23-DED58EA7A0D1%40mooseyard.com. For more options, visit https://groups.google.com/d/optout.
