Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Chrome debugging for Cordova Release App

Tags:

cordova

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?

like image 741
basicallydan Avatar asked Jun 27 '14 08:06

basicallydan


1 Answers

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

like image 80
cdarken Avatar answered Oct 02 '22 16:10

cdarken