How do you update the iOS & Android app version in Ionic w/ Capacitor?

So, Capacitor is neat! The android and ios configs are actually committed to source control. To update version number, simply update the following files: Android – android/app/build.gradle (you’re looking for the versionName variable) iOS – ios/App/App/Info.plist *(you’re looking for the CFBundleShortVersionString key)

How can I determine if the current platform is a native app or web in Capacitor?

The answers so far are all correct, if you take a look into the Capacitors source code, there a few ways available, which can be used (but are undocumented for now): Capacitor.getPlatform(); // -> ‘web’, ‘ios’ or ‘android’ Capacitor.platform // -> ‘web’, ‘ios’ or ‘android’ (deprecated) Capacitor.isNative // -> true or false Be aware, that … Read more

Error occurred while copying resources/android/icon/mdpi-foreground.png

I ran into the same error in a new Ionic Capacitor@2.4.7 project. I had the splash.png and icon.png in the resources directory. But those aren’t enough. The error is related to the Adaptive Icons section for cordova-res. 2 more icons are missing in your resources directory. Add the required icon-foreground.png and icon-background.png to the resources/android … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)