Hello,
I’m new to ionic and i just finished my first app and it work perfectly on my browser, but I just wanna know how to run it on my android device without the need of ‘ionic serve’ being launched on my PC, I mean my app currently works on my mobile but only if I run ‘ionic serve’ on my pc is there any way to make it run without the need of that. Or I’m missing something ?
Usage Syntax: ionic cordova run [] [options]
For Android :ionic cordova run android
did u even read my problem ?I said
my app currently works on my mobile but only if I run ‘ionic serve’ on my pc is there any way to make it run without the need of that
This is the documentation link.
U can use: ionic cordova build android
This will generate .apk file.
ionic cordova run android --will build .apk file and execute it in Your mobile device if ur connected with a mobile device. After that u can even launch .apk directly. If u have any doubt go through above documentation link.