It's hard to understand your problem without all the details, but from my experience, the biggest problems with cordova communications are related to Cross Source Resource Sharing (CORS). In your config.xml file you need something like:
<access subdomains="true" uri="169.254.0.1"/>
On the server side, you also need to enable CORS, so the headers should include:
Access-Control-Allow-Origin "*" Access-Control-Allow-Methods "POST,GET,DELETE,PUT,OPTIONS" Access-Control-Allow-Headers "origin ...."
source share