how to see which platform add in ionic capacitor code example
Example 1: ionic capacitor platform web
if (Capacitor.platform !== 'web') {
// TODO
}
Example 2: ionic capacitor ios
// if you didn't run before
ionic build
// then
npx cap add ios
if (Capacitor.platform !== 'web') {
// TODO
}
// if you didn't run before
ionic build
// then
npx cap add ios