Generating .apk and connecting to external mongodb

Hi you all,

I have lost so many time trying to make a web app that is intended to work as a mobile app to work with an external mongodb.

I’ve gone through lots of tutorials on the web but couldn’t find a way to define an environment variable while generating this apk.

I’ve tried with no success to generate an apk using mobile-settings.json, but it didn’t work
{
“env”: {
“MONGO_URL”: “mongodb://myuser:mypwd@yyyy.mlab.com:99999/numbers”
}
}

Do you have any idea of what I could do to make my mobile app talk to an external mongodb?

Thanks!