breautek commented on issue #1732: URL: https://github.com/apache/cordova-android/issues/1732#issuecomment-2286469510
> I am trying to to prevent inspecting the cordova webview. Building the cordova app with --release doesn't work either (This is what I've initially tried ). In my current builds i'm setting both the --release and the config.xml param mentioned above. > In my current builds i'm setting both the --release and the config.xml param mentioned above. if the preference is set at all, it will override the default behaviour, which is to enable on debug. If the preference is set, then it should only enable debugging if it's specifically `"true"`. Otherwise the webview setting is not called.... which I suppose leaves it to the SDK default. (Which I guess is [enabled](https://developer.android.com/reference/android/webkit/WebView#setWebContentsDebuggingEnabled(boolean)) by default on Webview 113 and later if the app is a debug build). So that might actually explain some situations because Cordova never explicitly sets the flag to false, but this should only affect debug builds that explicitly disable `InspectableWebview`. A release build that uses a SDK default should produce a webview that isn't inspectable. For that case, is that something reproducible in a [sample reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md)? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org