cordova-plugin-vha-webviewsetting

0.1.0 • Public • Published

cordova-webview-setting

a plugin for general webview setting:

  • to fix viewport issue: Viewport meta tag ignored in Android 4.4 WebView
  • enable autoplay for video/audio tag, for ios, juste add this line to the config.xml: <preference name="MediaPlaybackRequiresUserAction" value="false"/>

How to use

window.plugin.webviewSetting.set(function(err,status){
   if(err){
     console.error('failed');
   }else{
     console.log('fixed')
   }
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i cordova-plugin-vha-webviewsetting

      Weekly Downloads

      1

      Version

      0.1.0

      License

      MIT

      Unpacked Size

      5.61 kB

      Total Files

      6

      Last publish

      Collaborators

      • neostudiogroup