Sets Cordova app's web view to use wide viewport.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 6eec8e2 Jan 9, 2018
Permalink
Failed to load latest commit information.
templates Initial commit Mar 8, 2017
LICENSE Initial commit Mar 8, 2017
README.md Add npm badges to readme Jan 6, 2018
package.json 1.0.3 Jan 9, 2018
plugin.xml 1.0.3 Jan 9, 2018
set-viewport.js Fix syntax error in getConfig method Jan 9, 2018

README.md

Cordova Plugin Viewport

npm npm license

Sets Cordova app's web view to use wide (zoomed out) and device width sized viewport.

How it works?

This plugin adds only an after_prepare hook to change your app's main activity file. Cordova's prepare command is called before every build and run unless it's explicitly turned off.

As this overrides your main activity file, you cannot use this plugin with manually managed (android specific development way) android projects. But you can copy the logic from plugin into your files of course.