Ionic run android on multiple devices


#1

How to run .apk on multiple android devices?
I have connected smartphone and tablet on laptop and I want to run my app on both devices with command “ionic run android”. Is it possible to run on specific device (when are both connected) or on both devices at same time?


#2

It seems possible (I did not try) if you specify the device :

ionic run android --target=XXXX

where XXX should be replaced by the device id listed by

adb devices

#3

Thanks, it works.

So for now I build on this way

ionic run android --target=id1 & ionic run android --target=id2