9
votes

I tend to debug my Cordova app using Chrome and Safari's "Inspect on Device" type features, i.e. in Chrome the bottom option in this menu:

"Inspect Devices" in Chrome

For the release version of the app though I'd like even people with dev mode devices to not be able to inspect the JS source of the app in Cordova's web view. I can't find anything documenting it, does anybody know if it's possible to disable this?

1

1 Answers

10
votes

If you do cordova build --release the inspect will be disabled

Update: Since Cordova 5.0.0 the build system uses gradle. See this thread for more info: Specify signing config for Gradle and Cordova 5