I have a meteor 1.3.2.4 app hosted on heroku. METEOR_SETTINGS is set correctly on the server. Meteor.settings.public is defined as expected in my browser app, but undefined in my cordova app. I’m sure both apps are pointed at the same server. Anything obvious I might be missing?
(The app does use appcache, in case that might be relevant.)
Meteor.settings looks perfect on the server logs, but on the client it’s still undefined. I’m going to try a few other things: revert to a previous build where this was working and see if it still works, make sure my meteor versions match on the client and the server, etc. I’ll add notes here when I know more.
I have it working now, although I’m afraid I wasn’t meticulous enough to know exactly what was wrong. My best guess at the moment: there was a mismatch between the meteor version the app was expecting and the version on the server.
I’m using heroku-buildpack-horse to deploy, which always pulls the latest meteor version, but my app was built with 1.3.2.4. It may be there was some incompatibility there with what the server was providing and what the client was expecting.