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?
You can check Capacitor.DEBUG value.
Capacitor.DEBUG