https://github.com/cakuki/cordova-plugin-viewport
Sets Cordova app's web view to use wide viewport.
https://github.com/cakuki/cordova-plugin-viewport
cordova cordova-android cordova-android-plugin cordova-plugin webview
Last synced: about 1 month ago
JSON representation
Sets Cordova app's web view to use wide viewport.
- Host: GitHub
- URL: https://github.com/cakuki/cordova-plugin-viewport
- Owner: cakuki
- License: mit
- Created: 2017-03-07T16:31:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T14:45:03.000Z (about 1 year ago)
- Last Synced: 2025-03-16T23:46:18.031Z (about 1 month ago)
- Topics: cordova, cordova-android, cordova-android-plugin, cordova-plugin, webview
- Language: Java
- Size: 8.79 KB
- Stars: 7
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cordova Plugin Viewport
[](https://www.npmjs.com/package/cordova-plugin-viewport)
[](https://www.npmjs.com/package/cordova-plugin-viewport)
[](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.