get started with Ionic 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
}