Search code examples
androidiosreactjscapacitorcapacitor-plugin

How do I determine is my Capacitor + React app is running in development mode?


I have a iOS/Android app on Capacitor.js and plain React.

Is there a way to detect in the React app whether the app is running in development mode (DEBUG flag on iOS) vs in production in a cross platform way?


Solution

  • You can check Capacitor.DEBUG value.