How to connect to the server via cordova app?

I have built a basic app that pulls API data from an API periodically[using Meteor.setInterval() ] using the HTTP package and inserts it into a Mongo database. I use helpers do display data and it works on browser.
However, when I got my friend to build an android .apk I couldnt get the data in the app inspite of the code being deployed onto a server.

How does the cordova app know where the server is located? Does it even know that?
If so, how do I make sure my data is displayed?
If not, any alternatives wherein the server makes periodic api calls and the data is displayed in a cordova app?

Im using blaze