I’m using Capacitor 3.0 and would like to know the recommended way of using a different appId for my Android and iOS platforms for the same app. It’s quite common (see almost all of Google’s apps) to differentiate the platform in the package name (https://play.google.com/store/apps/details?id=com.android.chrome). I think there is a case to be made for supporting two different appIds in the config, but in the meantime I’m looking for the best way of doing this with the format com.myapp.android
and com.myapp.ios
respectively. Since the capacitor.config.ts
only allows for on appId
I have two options:
- Use something generic like
com.myapp
then update the projects later in Android Studio and Xcode. - Change the
appId
incapacitor.config.ts
then runnpx cap add android
, then change it again and runnpx cap add ios
.
Is one of these better or recommended the other?