I’m running a separate Meteor instance on my server for each company that uses my app. Each company uses it’s own subdomain in the url, and I’m running Nginx as a reverse proxy to forward them to the right instance. This works great for the browser, as you simply go to “mysubdomain.theapp.com” but now that I’m starting on the Cordova app, I’m not sure how to do it, since you only specify the url during the build.
Is there like a global setting in either Cordova or Meteor that can be changed at runtime?
I know you can use DDP.connect() to subscribe to collections on a different server, but I’m not sure how to do a “complete” connection switch for the whole app.