Hi !
I just wanted to share that interesting post from the Cordova dev list. It shows how to delegate XMLHttpRequest and image loading to a native implementation.

Would we provide any advantage by using our iOS http lib and android Pipes over plain XMLHttpRequest ? 

Also check the reply where another one have used the same approach to add certificate pinning , that could be an interesting source of inspiration since I know cert pinning is on the security roadmap [1]

Sébi
[1] https://issues.jboss.org/browse/AGSEC-196

Envoyé de mon iPhone

Début du message transféré :

Expéditeur: Brien Colwell <brien@nextop.io>
Date: 17 février 2015 11:42:48 UTC+1
Destinataire: dev@cordova.apache.org
Objet: I replaced XMLHttpRequest and image loading with a plugin, and wrote up my experiences
Répondre à: dev@cordova.apache.org

Hi All,

I spent some time researching how much of the webview network stack I could replace with a Cordova plugin on Android. I wrote a post about it -

https://github.com/nextopio/nextop-client/blob/master/docs/02.16.2015_CUSTOM_XMLHTTPREQUEST.md

The take away is that a Cordova can fully replacing the default XHR and image loading in the webview for async=true, but it can't do async=false (but who uses that anyway :/). This is cool because plugins can experiment with new wire protocols to get data to the client.

Best,
Brien


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org