capacitor install ionic project code example
Example 1: ionic capacitor v3 add android
npm install @capacitor/android
npx cap add android
npx cap run android
Example 2: how to add capacitor in ionic
ionic start myApp tabs --capacitor
cd myApp
Example 3: ionic capacitor ios
// if you didn't run before
ionic build
// then
npx cap add ios