I have 2 devices detected in adb. One from my genymotion, and the other from my real device :
$ adb devices List of devices attached 192.168.57.101:5555 device e78ab88d device
I want to run my ionic app on e78ab88d device
. How can i achieve this? If i run ionic run android
, its automatically run on my genymotion device. It says, no target specified. img no target specified
What command to run on specific device?
To run your app, all you have to do is enable USB debugging and Developer Mode on your Android device, then run ionic cordova run android --device from the command line. Enabling USB debugging and Developer Mode can vary between devices, but is easy to look up with a Google search.
run with target device id, something like :
ionic run android --target=e78ab88d
EDIT
With new Ionic 3 CLI use :
ionic cordova run android --target=e78ab88d
For list of all available devices, use :
ionic cordova run android --list
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With