On Nov 14, 2012, at 2:16 PM, Gina Cook <
gina....@gmail.com> wrote:
> I'm pretty sure the iOS/Mac code isnt in the Android side yet for the TDListener. The good news is that Android is what I do everyday, so I can probably help if that's what we need to do to lock down our TouchDB.
That would be great — the Android version could use some attention.
> By work I actually mean't anything, credentials or not. If we hit that url (and any of the other variations we have tried because we dont actually know what the url would be) in a WebView it says "Webpage not available." If we can load touchdb:/// in the WebView internal to our app, we wouldn't mind the credentials problem because at least it is our process who is loading the touchdb: url, not another process or another computer on the local network.
Ah, I see. I’m afraid I don’t know enough about the internals of how TouchDB/Android communicates with Ektorp. On iOS it registers an NSURLProtocol to handle ‘touchdb:’ URLs, and that’s visible to WebKit as well as Cocoa apps because both use NSURLConnection for URL requests.
I’m not sure whether Android/Java has a similar mechanism, or whether TouchDB there has to use the less desirable approach of opening a real TCP listener on the loopback interface. In the latter case, adding HTTP auth would still be feasible — a password could be generated at random at startup time and made available through an in-process API.
As I’ve said before, I believe Marty is going to have more time to devote to TouchDB soon, but right now we’re still in the final throes of completing Couchbase Server 2.
—Jens