I'm trying to turn a simple webapp into an Android app by using Phonegap Build. My webapp has some simple jQuery AJAX methods (GET/POST). I'm not sure how to go about this -- when I upload the zip to Phonegap Build, the zip includes the html file, the css file, and a js script which is basically the Node.js server.
My HTML file includes some javascript that relies on GET/POST from the server, but it never runs in the android app that is built. I have tried whitelisting the localhost in the config.xml file (10.0.2.2) but this is also not working. Anyone have an idea? Should I not be using Phonegap Build? Thanks.
PhoneGap will not allow you to run any node.js script. Node.js - is server side solution.
What you are looking for is to make front-end in html+css+js, that will speak to your node.js using AJAX. But node.js have to run on hosting that will be available online. So that way your application will speak to node.js process that will server all clients (PhoneGap applications) via HTTP (AJAX).
Please remember, that StackOverflow helps with specific code problem, not knowledge or generic questions.