This should work - I tried this for some test projects.
Currently I am working on a Cordova Plugin written in pure Haxe - you
can write the backend code in Haxe as well and call it via Haxe
remoting. This works already for Android/Haxe-Java and WP8/Haxe-C#. Next
step is iOS/Haxe-C++
cheers, Adrian.