capacitor ionic android code example
Example 1: ionic capacitor v3 add android
npm install @capacitor/android
npx cap add android
npx cap run android
Example 2: ionic capacitor android
// if you didn't run before
ionic build
// then
npx cap add android
npx cap sync
Example 3: ionic capacitor ios
// if you didn't run before
ionic build
// then
npx cap add ios