x1ongzhu 9385d79ce1 first commit 7 năm trước cách đây
..
templates 9385d79ce1 first commit 7 năm trước cách đây
LICENSE 9385d79ce1 first commit 7 năm trước cách đây
README.md 9385d79ce1 first commit 7 năm trước cách đây
package.json 9385d79ce1 first commit 7 năm trước cách đây
plugin.xml 9385d79ce1 first commit 7 năm trước cách đây
set-viewport.js 9385d79ce1 first commit 7 năm trước cách đây

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.