Finally following up on this. Create JIRA: https://issues.apache.org/jira/browse/CB-4986
And checked in a plugin called "org.apache.cordova.websql" to cordova-labs/plugins. https://git-wip-us.apache.org/repos/asf?p=cordova-labs.git;h=3d26e5d Pushed it to the registry. On Fri, Sep 20, 2013 at 1:46 PM, Michal Mocny <mmo...@chromium.org> wrote: > Thats a super cool solution! I agree that updating what's inside > cordova-labs and leaving it there is a good option for "written by us, but > not quite core". > > -Michal > > > On Thu, Sep 19, 2013 at 7:23 PM, Andrew Grieve <agri...@chromium.org>wrote: > >> Managed to get a simpler version of my email coding to work! >> >> var ifr = document.createElement('iframe'); >> > ifr.src = "websql://foo"; >> > ifr.onload = function() { >> > window.openDatabase = function() { >> > return >> > ifr.contentWindow.openDatabase.apply(ifr.contentWindow, arguments); >> > }; >> > >> >> Also needs a couple lines of Java to return "<html></html>" for the >> request to "websql://foo" >> >> The gotcha here is that you need to make sure to not detach the iframe >> from >> the document. No biggie, but need to be aware of it. >> >> This can all be easily put into a plugin without any modification to core >> :) The existing android storage plugin is in cordova-labs#plugins. I think >> the right move would be to update this plugin, post it to the registry, >> and >> tell people about it? >> >> >> On Thu, Sep 19, 2013 at 5:03 PM, Joe Bowser <bows...@gmail.com> wrote: >> >> > OK, I tried the tests included with the plugin, and they don't run. >> > Can someone sanity check this for me? I'm going to try running this >> > on additional devices, since it could be a weird Cyanogen thing. But >> > yeah, if other people can try this plugin, that'd be awesome. >> > >> > On Thu, Sep 19, 2013 at 10:12 AM, Andrew Grieve <agri...@chromium.org> >> > wrote: >> > > Tried out my email code, and despite my confidence, it doesn't work >> :P. >> > > >> > > So... Joe - like your plan. >> > > >> > > >> > > On Thu, Sep 19, 2013 at 12:32 PM, Brian LeRoux <b...@brian.io> wrote: >> > >> >> > >> yup. >> > >> >> > >> >> > >> On Thu, Sep 19, 2013 at 5:42 PM, Joe Bowser <bows...@gmail.com> >> wrote: >> > >> >> > >> > OK, how about we do this: >> > >> > >> > >> > 1. We indicate that we no longer support WebSQL on the docs and we >> > >> > list out why we don't support it as it currently exists >> > >> > 2. I'll look at the Android plugin that does do SQLite and see if >> it's >> > >> > appropriate for Android (if someone could do the same for iOS, >> that'd >> > >> > be cool): https://github.com/lite4mobi/Cordova-SQLitePlugin >> > >> > >> > >> > I think this looks far more promising than any of the hokey >> bullshit >> > >> > that we're currently doing, and it has contributors, and it's >> actually >> > >> > updated for Cordova 3.0. >> > >> > >> > >> > On Thu, Sep 19, 2013 at 7:53 AM, Ian Clelland < >> iclell...@chromium.org >> > > >> > >> > wrote: >> > >> > > On Thu, Sep 19, 2013 at 10:38 AM, Joe Bowser <bows...@gmail.com> >> > >> > > wrote: >> > >> > > >> > >> > >> OK, here's a crazy concept that I'm going to throw out there. >> > >> > >> >> > >> > >> How about we audit and recommend a third-party plugin and not do >> > any >> > >> > >> more work on this issue. >> > >> > > >> > >> > > >> > >> > > +1 >> > >> > > >> > >> > > I don't think there's enough consensus about whether WebSQL even >> > >> > > belongs >> > >> > in >> > >> > > the web platform for us to be insisting that it be part of >> Cordova. >> > I >> > >> > would >> > >> > > much rather see someone with a real interest in WebSQL be >> providing >> > >> > > that >> > >> > > functionality. Our job can be to make sure that we aren't >> getting in >> > >> > > the >> > >> > > way; that we are helping make plugins like that possible. >> > >> > > >> > >> > > Ian >> > >> > >> > > >> > > >> > >> > >