1) Add the mobile platforms (e.g. android) to the app that you want to build for:
meteor add-platform android
2) Create the bundle with this command:
meteor build ../bundle --server "SERVER-ADDRESS":"PORT"
meteor build ../bundle --server 126.96.36.199:3301
Some more info : http://stackoverflow.com/questions/27617869/generate-apk-file-for-meteor-app
So now the app contains the server information to which it will connect.
You can take the
.apk file that was created with the build command (somewhere in the bundle folder), and install it on android device or emulator (BlueStack is a good one for windows)
When the app will start i think it will show you a message that connection with the server failed
or something like this.
Now for the Server Side ->
Unfortunately i didn’t make the app to the production phase
So i didn’t ran the bundle file on the server.
It was in the “raw” meteor format.
3) So to make the Server to listen for the Mobile apps i used this commands:
meteor --mobile-server "SERVER-ADDRESS":"PORT" --port "PORT"
meteor --mobile-server 188.8.131.52:3301 --port 3301
I assume that if you build the app with the following command, perhaps the bundle file on the server also will work. Never tried it though.
meteor build ../bundle --server 184.108.40.206:3301 --mobile-server 220.127.116.11:3301 --port 3301
Hope it will help you.
Please if you find more information, share it.