IOS Phonegap Couchlite plugin and CBLListener

30 views
Skip to first unread message

Zumo

unread,
Sep 2, 2014, 1:12:19 PM9/2/14
to mobile-c...@googlegroups.com
Hi ,

Does anybody know whether the CouchbaseListener is started on plugin startup when running on IOS ?
It seems to be the case on Android but not on IOS ..

If its started by default , what is the best way to get the port number ?
Otherwise,  , is there any particular reason  as for why its started on Android and not on IOS ?

Thanks again a lot for your help ,
christian

Jens Alfke

unread,
Sep 2, 2014, 1:18:04 PM9/2/14
to mobile-c...@googlegroups.com

On Sep 2, 2014, at 10:12 AM, Zumo <zum...@gmail.com> wrote:

Does anybody know whether the CouchbaseListener is started on plugin startup when running on IOS ?
It seems to be the case on Android but not on IOS ..

It is; the plugin would be pretty useless if it weren't :/
Can you describe your problem in more detail?

—Jens

Zumo

unread,
Sep 2, 2014, 2:48:59 PM9/2/14
to mobile-c...@googlegroups.com

I want to access the couchLite  instance remotely (initially for testing/debug) and I wanted to avoid creating a Listener in the plugin as described in https://groups.google.com/forum/#!searchin/mobile-couchbase/Listener/mobile-couchbase/gTmrQQHr5cg/MYnO44IEMSUJ

If the HTTP listener is available,is there a way to confgure the port number on app startup ? I am sorry I couldn't find this info in the docs
cheers
christian

Jens Alfke

unread,
Sep 2, 2014, 4:05:26 PM9/2/14
to mobile-c...@googlegroups.com

On Sep 2, 2014, at 11:48 AM, Zumo <zum...@gmail.com> wrote:

I want to access the couchLite  instance remotely (initially for testing/debug) and I wanted to avoid creating a Listener in the plugin

Oh I see, you mean the external listener — you want to open a real TCP port. That's not enabled by default.
I don't know the PhoneGap plugin well, but I think you'd need to rebuild the native code to start up the listener. (That is, I don't think there is a JS API to do it.)

—Jens

Reply all
Reply to author
Forward
0 new messages