cordova-plugin-webview-settings

1.0.2 • 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')
   }
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0

Package Sidebar

Install

npm i cordova-plugin-webview-settings

Weekly Downloads

1

Version

1.0.2

License

BSD

Unpacked Size

5.35 kB

Total Files

6

Last publish

Collaborators

  • jaredliu2019