I am doing a meteor build (meteor build c:\www\app-name --server=http://app-name.meteorapp.com --mobile-settings=settings.json) for an android cordova app build of my meteor app.
I am then opening this project in android studio. It all seems to run well however once I run the project from android studio to my android device I seem to lose all the settings from the settings.json? Other than that the app runs fine.
I get an error from within my code ‘Meteor.settings.public’ is undefined? I get this no other place than the app.
Ah, I see, didn’t know that. Apart from this, I have no clue what is going wrong here. My own build works in Android Studio, using the settings.json as expected. Yet, I am on MacOS instead of Windows.
Hi, everyone.
I’ve experienced the same problem.
I’ve resolved it removing cordova-build directory before new build:
rm -rf .meteor/local/cordova-build