[aerogear-dev] Cordova Plugin Idea
Kris Borchers
kris at redhat.com
Thu Dec 20 14:18:20 EST 2012
On Dec 20, 2012, at 12:20 PM, Burr Sutter <bsutter at redhat.com> wrote:
> Good point, I was not very clear - I consider the plugin to be at least two deliverables:
> 1) The native code
> 2) the JS lib that exposes "wraps" the API for the JS developer
>
> For item 2, ideally the JS API would be identical between iOS and Android.
Yes, that is how I visualize all of this as well. We will just need to have conversations with the iOS and Android folks to see if #2 is possible since they could have different native storage implementations that just can't easily overlap in a single API.
>
>
> On Dec 20, 2012, at 12:56 PM, Kris Borchers wrote:
>
>>
>> On Dec 20, 2012, at 11:53 AM, Burr Sutter <bsutter at redhat.com> wrote:
>>
>>> Ideally, the JS developer will mostly be OS agnostic. Can the Cordova plugin support both the iOS and Android means of "storage"?
>>
>> Depends on what you mean by "Cordova Plugin". When I say Cordova Plugin, I am talking about the native bits (iOS/Android/etc) that plug into Cordova. The JS side could maybe be made as a "device storage" adapter that would then talk to the correct native pieces but that's a little beyond me at this point as I haven't looked into Cordova contribution much yet.
>>
>>>
>>>
>>> On Dec 20, 2012, at 12:36 PM, Matthias Wessendorf wrote:
>>>
>>>> great!
>>>>
>>>> had the same thought, but forgot about it :-)
>>>>
>>>> AGCoreData is not yet ready, though
>>>>
>>>> -Matthias
>>>>
>>>> On Thursday, December 20, 2012, Lucas Holmquist 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 know cordova has a storage api, but it looks like it is just based on the W3C web storage/web sql specs
>>>>
>>>> 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
>>>>
>>>> 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
>>>>
>>>>
>>>> --
>>>> Sent from Gmail Mobile
>>>> _______________________________________________
>>>> 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
>>
>> _______________________________________________
>> 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/a6dc8bea/attachment.html
More information about the aerogear-dev
mailing list