Hey Alice =]
You've caught me on a rant-y day, so you'll get a full answer; we can talk further off list, because this venue isn't appropriate, as should be clear by the middle of 'graf 5, but I'll post this for posterity.
Now, pardon the assumption, but I think my reply isn't helpful partly because you think you're writing a native app.
A native app that gets data from the web would involve implementing a HttpRequestFactory or something similar.
What one does in PhoneGap/Cordova is write scripts( and a DOM ) that call methods implemented by the phone's webview and also( and here's the hybrid! ) native methods you can implement in Java--in libraries compiled alongside the Cordova/PhoneGap libraries; these scripts are downloaded when the app starts and makes a request to the webpage by calling the getUrl method in a webView.
From http://phonegap.com/2012/05/02/phonegap-explained-visually/
"The web view used by PhoneGap is the same web view used by the native operating system. On iOS, this is the Objective-C UIWebView class; on Android, this is android.webkit.WebView. Since there are differences in the web view rendering engines between operating systems, make sure that you account for this in your UI implementation." [ed: UI implementation = mobile web HTML5/CSS3]
So we can agree then, that what PhoneGap/Cordova does is reference the web view used by the OS, yes? You can look in https://github.com/apache/cordova-android and you won't find the v8 library, we agree on that, right? ...we also agree that Apache/Adobe produces PhoneGap/Cordova, yes? Not the Android Integrated Development Environment team? Some of us were putting Cordova libraries in our apps via AIDE long before they made the in-app template =]
I'd like to commiserate with you: yes, google isn't doing much to update webview on old phones, but you're barking up the wrong tree asking the team that writes what is essentially a text editor on steroids( vim is an IDE too! =] ) to do that for you; if you want to do the nastiest polyfill known to droidkind, you are best off scouring github for some poor soul who keeps a wrapper up for the chrome engine, submodule that, and then worry every day that they'll take a vacation or wreck your interface; the link you provided could be such a resource.
I'll ask you again: do you want to have to patch and issue updates to your app every time Google updates chrome? Just thinking of that, I see every free moment of my life burning away like butterflies in a firestorm, and thankfully, that is not what Cordova/PhoneGap does.
I think you'd really enjoy reading up on what 'interface' means, particularly in Java; it's because of the power of that concept that you don't need to exclusively target Kitkat devices to get a PhoneGap app that works middlingly well on newer phones, and like-crunk-but-still-rendering on older ones; it's also why the -webkit- standards are strongly influenced by Apple devs, but we can use them here in aOS...
Lastly--and I think addressing your point directly--as for the dream of making one website for mobile and web--you can pass the marley over to Zuckerberg; they tilted at that windmill for *years*.
In the end, webView/chromium based apps will only asymptotically approach the performance of native apps--arm processors run js 4X slower than x86, js runs 10X slower than Java, and we already split our cores--and frankly, because there is no getting around that is why we droidgrammers continue to make the salaries we do.
And as such, here's my absolutely free advice to you: if you are committed to running scripts on a mobile device, make sure you are using very standard libraries( read: jquery mobile ), that they are cached--not downloaded repeatedly--and that they are brief and to the point i.e. if you detect your website is being loaded by your client their steady state should be stored in native Java methods--a hybrid.
Dollars to donuts, it isn't that your scripts aren't being supported, it's that they are hanging because they are scripts running on a resource-constrained machine.
http://caniuse.com/#agents=mobile&cats=JS_API (check out android browser!)
And this bears repeating: if you are actually concerned about performance--if your users are not 1. a VC or 2. obliged, and might slip away if they have to wait more than 7-12 seconds--hire a native developer.
I hope this was more informative =]
shanti
-AnBr
I don't think you understood what I was saying, because you're reply wasn't helpful and didn't indicate understanding.I was talking about maybe including something like this: https://github.com/pwnall/chromeviewWhich would make up for Android 4.0, for example, lacking support for the Chrome Webview widget. And lacking the Chrome Webview version of the widget means that web apps created with AIDE/PhoneGap on pre-kitkat devices are missing significant support for web standards. I don't know if you really noticed, but development on older versions of Android(out of date ones) is generally zero. So unless I buy a new KitKat phone and only target KitKat devices I can't even release a working worth while native webapp using AIDE/PhoneGap and a normal webapp at the same time using the same code. Kind of defeats the purpose of AIDE/PhoneGap, doesn't it?
Unbelievably, this is me being nice.
1. webView--Chromium-based or otherwise--is not a class supplied by PhoneGap, and AIDE is merely supplying you with the PhoneGap libraries/classes.
2. I recommend you research interfaces as they apply to Java; consider webView as such an interface.
3. You are barking up the wrong tree, asking this of your text editor/compiler; the interface is implemented in the OS; truthfully, you be better off petitioning Google and then every data provider to push an update.
4. You really, really, really don't want to package a web browser in your app.
5. I cannot believe you are calling WebView.requestAnimationFrame from a native Java class; you must be calling it from js, but http://caniuse.com/requestanimationframe you'd have to be using pre-2.1(I think Froyo?) to see that js library not supported by the LameView.
For the record, I don't think you are stupid, I can see you just have the wrong frame of reference/definitions, and I seemingly cannot show you the right ones.
best