I’m building a hybrid app with Meteor and Cordova. I’m stuck trying to get my Cordova apps to connect to my production server. Everything runs smoothly in my local dev environment and my mobile apps have no trouble to connect to the local server. It also works when I deploy to meteor.com. It only falls apart when I try to use my own server.
I tried to use app versions provided by
meteor build --server http://my.server.ip as well as
meteor run android-device --server http://my.server.ip. My server meteor server runs on an Ubuntu VM and I tried running it with and without Nginx.
In all cases I have no trouble accessing my app via the web but both apps just log
cordova.file.dataDirectory is null and don’t connect to the server. Is there anything else I need to do or does anyone have a guide for a working configuration?