[aerogear-dev] Cordova Plugin Idea
Lucas Holmquist
lholmqui at redhat.com
Thu Dec 20 11:58:36 EST 2012
Yea, just wanted to get the idea down so we don't forget and to see if its in the right direction
On Dec 20, 2012, at 11:55 AM, Kris Borchers <kris at redhat.com> wrote:
> Cordova is something I want to dig into after 1.0. I like the spirit of the idea. See comments inline.
>
> On Dec 20, 2012, at 10:34 AM, Lucas Holmquist <lholmqui at redhat.com> wrote:
>
>> I know we really haven't talked about cordova plugins to much, but i want to just get this thought down so i didn't forget about it.
>>
>> would it make sense to have a cordova plugin for accessing the core data stuff from our iOS libs, that is once it's ready.
>>
>>
> I think so
>> I know cordova has a storage api, but it looks like it is just based on the W3C web storage/web sql specs
>>
>>
> That would probably be the basis of the "default adapter" for DataManager on Cordova. I see a separate Cordova repo that can include a copy of AeroGear.js with the default adapters (Pipeline:Rest, Auth:Rest, DataManager:Memory), then we could implement other adapters, like a DataManager:CoreData adapter on top of that. Our custom build system should allow for building a custom Cordova download as well as be able to include other pieces from the AeroGear.js core (DataManager:SessionLocal for example).
>> i guess i was thinking this is how it would work:
>>
>> Possibley have an aerogear.js datamanager plugin for the front end that then calls the aerogear ios libs coredata plugin
>>
>>
> Yes, though this is where we would need to involve someone with Cordova plugin and iOS experience to get that connection between the JS and iOS libs.
>> In JS
>>
>> var dataManager = AeroGear.DataManager({
>> name: coreDataStore,
>> type: CoreData //or something
>> });
>>
>> var coreDataStore = dataManager.stores[0];
>>
>> coreDataStore.read() // this would access the Aerogear ios core data part
>> I'm not really familiar with core data, so i could be way off base with this idea
>>
>>
>> -Luke
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20121220/4eb3bf1f/attachment.html
More information about the aerogear-dev
mailing list