Disable chrome debugging. Cordova 5.0.0

Is there a way to disable debugging of a Chrome application?

when i do chrome: // check that my app is listed in the event list i downloaded the app from play store. The application is also created under --release state and signed.

Any help?

+3


source to share


1 answer


You give a android:debuggable=["true" | "false"]

shot to the manifesto. This is an attribute for the app tag and can be manually added to the platform / android / AndroidManifest.xml file.

Or, you could do it through the cordons hook. Check out this hook from an ionic generator: https://github.com/djett41/generator-ionic/blob/master/templates/hooks/after_prepare/update_platform_config.js

Hooks can be automatically started from the hooks folder and that particular hook will be in hooks / after_prepare or config as <hook type="after_prepare" src="path/to/file/update_platform_config.js" />



More information on hooks can be found in the hooks readme file: https://github.com/apache/cordova-app-hello-world/blob/master/hooks/README.md

By running this option with the above, you will add something along these lines to your config.xml:

<platform name="android">
    <preference name="android-debuggable" value="false" />` 
</platform>

      

+1


source







All Articles