We have decided to split 1 Meteor app into 2 different Meteor apps
- the main “web” application
- a client “mobile” application - still a Meteor + Cordova app
The mobile application is really client-only… It’s mostly a way for us to keep all the mobile-specific interface separate from the web interface (and all the web-only admin stuff).
The mobile application should connect back (via DDP) to the main “web” application, for subscriptions, etc. It doesn’t need a DDP connection back to the mobile server at all.
The docs on this seem pretty straightforward: http://docs.meteor.com/#/full/ddp_connect
Now I’m curious about login and accounts and
How do I, from the “mobile” app, login to the “web” application?
Ideally, such that the “mobile” app has the userId available like “normal” via
diagram-screenshot (I’m not allowed to embed images)
Also please confirm that I can NOT just tell the “mobile” client to use the web’s URL as it’s main URL.
meteor build ../build-dev --server my-web-server.com:80
I can not do this, because the
--server is where the mobile client’s content comes from, for updates, etc… right?