jshimko / meteor-launchpad

A base Docker image for Meteor applications.
https://hub.docker.com/r/jshimko/meteor-launchpad/
MIT License
276 stars 152 forks source link

Meteor.settings is undefined in Android App #63

Closed occasl closed 7 years ago

occasl commented 7 years ago

I'm using launchpad to deploy my Meteor app to prod and I set an ENVAR METEOR_SETTINGS with the appropriate data. When I test from a browser I see the Meteor.settings is working as expected. However, when I use a Mobile Android client, I'm getting a white screen of death and it says Meteor.settings is undefined. I don't understand how that could be since it is clearly set on the server. My understand that the client should pull that from the server into the client. Do you have to do something extra with a mobile app?

occasl commented 7 years ago

Resolved by using --mobile-settings settings.json but it is really a function of not being able to successfully connect to /sockjs/info call on Meteor.startup() from Android only. That I'll address in the Meteor forums.