I would need to share data (not necessarily a large amount) between a native iPhone app, and a safari/webkit javascript app… Do you know how this could be done ?
I considered sqlite.. But it seems an application can only read/write inside its own bundle (so, not in the webkit databases directory), and the other way, i guess javascript can’t access an application directory.. right?
Could there be a shared folder that both could access? Not necessarily with sqlite..
I thought also of pasteboards, but they don’t seem to be interoperable; and moreover, another app could overwrite the pasteboard in between…
Do you have some other ideas?
You really can’t. You can get some data from the JS app to a native app by having the JS app use a custom URL that the native app has registered to invoke, but aside from that you won’t have much luck.
You can, of course, share the data through a server somewhere else.