1.0.0 • Published 5 years ago

cordova-plugin-debuggable-webview v1.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

cordova-plugin-debuggable-webview

Within our project we have a mobile application that is making use of Ionic and Cordova. Whenever we want to test a new release, we publish the apk to an internal test track in the Playstore, from where our testers can download this apk. Because we want to be able to do some debugging if necessary during this stage, we wanted an option to build an apk that still allowed debugging. But we also wanted to be able to turn off the possibillity of debugging without having to remove the plugin. For that reason we have written this plugin.

Installation

Use the following cordova command to install the plugin: cordova plugin add git+https://github.com/JouriFledderman/cordova-plugin-debuggable-webview.git

Usage

Add the following codeblock to your config.xml within the <platform name="android"> element:

<config-file parent="/manifest/application" target="AndroidManifest.xml">
  <meta-data android:name="WebViewDebug" android:value="true" />
</config-file>

when you do not want to enable debugging in your apk (for example when you create a production release), make sure you set the android:value for the WebViewDebug property to false.