ionic app run on android using ionic capacitor

ionic capacitor is the api working with android platform. using that capacitor it can be run ionic application on android emulator or any devices. ionic cordova is the same thing can be used for this deployment. but when it is heavy application, most suitable thing is ionic capacitor for deployment.

now see what are the command should be used

first thing you start ionic application using

ionic start MyIonicProject tutorial type=ionic-angular

that command. MyIonicProject (use your own application name).

after it should be build ionic application once before adding capacitor to that application.

after building  ionic application it can be used  command

ionic capacitor add android 

after capacitor plugging  will be added the build file and it can be see android wrappers file  in your ionic application file as bellow.

a

after it should be copied build ionic application to android wrappers file using

ionic capacitor copy android

command it can be done

now it can be run application on android platform

now use

ionic capacitor run android

command to run on android devices.

 

4 thoughts on “ionic app run on android using ionic capacitor

Leave a comment