Cordova Plugin

i disagree. i think in the long run, remoteStorage should totally become a Cordova plugin. just that at the moment, we are not ready for that yet.

a year ago I met Brian Leroux from phonegap at a conference, and we agreed that it would be cool if Cordova could provide a file storage abstraction which abstracts from iCloud on iOS and basically polyfills remoteStorage on other platforms - or at least offer something of the kind as an option to developers who target multiple platforms and who want to store some data on per-user cloud storage (which i guess are most Cordova users).

we are already working on making remotestorage.js a more generic per-user storage layer by adding GoogleDrive and Dropbox as backends. the idea is to position ourselves as ‘sync for the web’, so much more ambitious scope than what our library is now.

i also think we should get a deeper integration with Firefox OS. i mentioned this to Dietrich Ayala a few months ago; he pointed me to the data api, and we talked a bit about that:

having said that, it is true that at this point remotestorage.js is purely a javascript library and not a shim.

the Cordova plugin instructions you linked to state:

Once you have defined a JavaScript for your plugin, you need to complement it with at least one native implementation.

so this would only make sense if once implement a bridge to iCloud on iOS, for instance. so at the moment, @xMartin and @raucao are correct, but i think in the future we definitely want to integrate deeper into the html platform by linking closer to both Cordova and Firefox OS.

@arky are you a developer advocate for Mozilla? just subscribed to your blog Playing With Sid: About - cool, welcome to our forum! :slight_smile: