cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse <purplecabb...@gmail.com>
Subject Re: [Android] xhr2 shim on Android 2.3 - is it worth the effort? I think I need help on this one.
Date Tue, 29 Jan 2013 01:43:52 GMT
Actually the recent checkins break the existing File API that is already
there on Windows 8 and Windows Phone 8.
Both of these platforms already support ArrayBuffers, Blobs, Typed Arrays,
et al ...


On Mon, Jan 28, 2013 at 5:09 PM, Andrew Grieve <agrieve@chromium.org> wrote:

> The goal of the recent ArrayBuffer work is to allow the browser's native
> ArrayBuffers to be passed through the bridge. It doesn't work on Android
> 2.3, since that version doesn't support ArrayBuffers.
>
> The recent Blob work applied to Cordova's File plugin and made it so that
> it has a slice() method (like the native Blob), and a separate change was
> made so that if you pass a native Blob to FileReader, it will pass through
> to the native FileReader.
>
> So... Cordova File objects do *not* currently work with xhr2.
>
> I agree that's it's a pretty overwhelming task, and that it's likely not
> worth the effort unless users really start asking for it.
>
>
>
>
>
> On Mon, Jan 28, 2013 at 6:50 PM, Joe Bowser <bowserj@gmail.com> wrote:
>
> > Hey
> >
> > I'm starting to look at adding the xhr2 shim for Android 2.3, and I've
> > come to this conclusion:
> >
> > 1. This looks like a LOT of work and I'm way over my head
> > 2. This depends on a lot of the recent work that was put into Android
> > (ArrayBuffer and Blob)
> >
> > Also, do we know if the new ArrayBuffer and Blob works with Android
> > 4.x xhr2? Doesn't Android 4.x already have an ArrayBuffer and Blob
> > object for it's webview?
> >
> > Anyone want to come in and explain this?  This looks pretty overwhelming.
> >
> > Joe
> >
>



-- 
@purplecabbage
risingj.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message