ionic run with capacitor 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 platform web
if (Capacitor.platform !== 'web') {
// TODO
}
npm install @capacitor/android
npx cap add android
npx cap run android
if (Capacitor.platform !== 'web') {
// TODO
}