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