I got it from the app init yes. But this is exactly what confused me:
"Are you talking about the base URL to use with PhoneGap? That’s the same whether or not you use sync” I would have thought there would be some canonical localhost-type URL to talk to a local vs a remote couchbase daemon. I didn’t realize there isn’t one and that you have to get it from the plugin, so I spent several hours assuming I had a bad URL (in part because of the 400 error message) and trying different URLs (e.g. couchdb uses http://0.0.0.0:5984). Some clearer indication of that in the docs would be a big help - I couldn’t find anything that specified this. _peter > On Oct 2, 2014, at 1:19 PM, Jens Alfke <[email protected]> wrote: > > >> >> On Oct 2, 2014, at 9:52 AM, Peter Jacobson <[email protected] >>> wrote: >> >> For me maybe the biggest undocumented thing to date is, “what is the host >> url for a local device when you are not using couchbase server at all?” I >> ended up doing a check and getting it then trimming the last “/“ to use it >> in the app. iOS and Android are completely different. >> >> > > Are you talking about the base URL to use with PhoneGap? That's the same > whether or not you use sync. And I thought the app initialization code from > the PhoneGap plugin passed it to you. (The PhoneGap based sample apps should > show how to get it, in any case.) > > > —Jens > > -- > You received this message because you are subscribed to a topic in the Google > Groups "Couchbase Mobile" group. > To unsubscribe from this topic, > visithttps://groups.google.com/d/topic/mobile-couchbase/VwKv2PpF1Pw/unsubscribe > . > To unsubscribe from this group and all its topics, send an email > [email protected] > . > To view this discussion on the web > visithttps://groups.google.com/d/msgid/mobile-couchbase/53FF6677-7FA0-44A8-9A09-B15EA71F9DE1%40couchbase.com > . > For more options, visithttps://groups.google.com/d/optout > . -- 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/6241B7B9-D476-4257-9ED0-9B69940C8AFE%40surgeforward.com. For more options, visit https://groups.google.com/d/optout.
