This is very important.
Cordova sees emulators as real devices so any commands you use must be as though you are connecting to a physical device.
This command will load your android app into your Genymotion instance and point it to your local IP. (substitute your own LAN IP in your case).
meteor run android-device –mobile-server=http://192.168.1.x:3000
OR
meteor run android-device
Running multiple instances
Initially you may only have one instance running at a time.To work around this minor limitation you can load your app on many emulated instances and then turn them all on concurrently to simulate multiple cordova users.
Within your meteor project root directory using this command line to deploy more instances:
.meteor/local/cordova-build/platforms/android/cordova/run
This will install the compiled app onto the device that is connected. Repeat for each device.
Then you can run a development instance of meteor with a mobile-server that all the clients will be connected.
Whenever you want to test, open upĀ your instances and fire up a meteor server instance.
meteor run android-device
Tips on running more than one emulator concurrently:
https://github.com/meteor/mobile-packages/issues/55
Troubleshooting:
Ensure you have USB debugging enabled
Ensure that you can connect to your instance using ADB
Ensure that you your device shows up as connected via ADB, check with ‘adb devices’ and ‘adb connect IP’
Ensure that you are using the latest version of ADB 1.0.32 (verify with ‘adb version’ in command line)
Ensure that you have configured Genymotion to use the same ADB as your system instance.
Other reading: