Native iOS app won't connect to mongo db

I am building a meteor app to be downloaded from the Apple App Store. I can run ‘meteor run ios-device’ with production settings (ROOT_URL and MONGO_URL) and get the ios simulator to load production data just fine. However, when I run ‘meteor build’ with the same production settings, the resulting app doesn’t load any data at all. I have followed the documentation here https://guide.meteor.com/mobile.html, but it doesn’t seem to be connecting to the production mongo db. Am I missing additional config items?

Are you running a server somewhere?

1 Like

Got it figured out. I have my app deployed on Heroku and I recently upgraded to meteor 1.4, which isn’t supported by the buildpack I was using. So I switched buildpacks, re-deployed and everything is working now. Thanks for the reminder!

1 Like