Let user enter mobile server url for Cordova app after launch

Hello!

We have an Android application built with Meteor and Cordova. As per the instructions, the application server should be specified by passing a server flag and a url with the build command.

In our case, we spin up separate servers for each customer, that lives on different URLs. What would be a good approach to allow customers to download the Android application from Play store and then allow them to specify the server URL before logging into the app?

What we do not want is to build an Android app for each customer with their specific URL specified as a flag with the build command for obvious reasons.

Anyone dealt with this before? Any help would be greatly appreciated.

Take care fellow astronauts
Reg

A Cordova app in Meteor is built on pair with a server bundle. If you need another server, you seem to need another app. So you probably only need one server, one app, multiple DBs and a load balancer if you want to control load per server in a multi server environment and an autoscaling system if you want an elastic environment.
For the load balancer, you can direct a certain client to a certain server so that you can bill each customer for the respective server size.