https://github.com/timbru31/cordova-plugin-detect-webview-engine
🅰️ ⁉️ 🅱️ Apache Cordova plugin to determine whether the application is using UIWebView or WKWebView engine
https://github.com/timbru31/cordova-plugin-detect-webview-engine
cordova cordova-ios-plugin cordova-plugin hacktoberfest ionic ionic-plugin ios javascript phonegap phonegap-plugin swift typescript uiwebview wkwebview wkwebview-engine
Last synced: about 1 month ago
JSON representation
🅰️ ⁉️ 🅱️ Apache Cordova plugin to determine whether the application is using UIWebView or WKWebView engine
- Host: GitHub
- URL: https://github.com/timbru31/cordova-plugin-detect-webview-engine
- Owner: timbru31
- License: mit
- Created: 2017-11-07T20:22:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-14T23:51:33.000Z (about 1 month ago)
- Last Synced: 2025-04-15T02:53:18.099Z (about 1 month ago)
- Topics: cordova, cordova-ios-plugin, cordova-plugin, hacktoberfest, ionic, ionic-plugin, ios, javascript, phonegap, phonegap-plugin, swift, typescript, uiwebview, wkwebview, wkwebview-engine
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/cordova-plugin-detect-webview-engine
- Size: 623 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# cordova-plugin-detect-webview-engine
[](https://github.com/timbru31/cordova-plugin-detect-webview-engine/actions?query=workflow%3ALinting)
[](https://github.com/timbru31/cordova-plugin-detect-webview-engine/actions?query=workflow%3ASecurity)[](https://snyk.io/test/github/timbru31/cordova-plugin-detect-webview-engine)
[](https://commitizen.github.io/cz-cli/)
[](LICENSE)
[](https://www.npmjs.com/package/cordova-plugin-detect-webview-engine)#### Apache Cordova plugin to determine whether the application is using UIWebView or WKWebView engine
### Supported platforms
- **iOS**
### Installation
#### from npm (recommended)
`$ cordova plugin add cordova-plugin-detect-webview-engine`
#### from git (unstable)
`$ cordova plugin add https://github.com/timbru31/cordova-plugin-detect-webview-engine.git`
### Usage
#### Check for UIWebView
```js
cordova.plugins.webviewEngine.isUIWebView().then((isUIWebView) => {
// returns true or false
});
```#### Check for WKWebView
```js
cordova.plugins.webviewEngine.isWKWebView().then((isWKWebView) => {
// returns true or false
});
```---
Built by (c) Tim Brust and contributors. Released under the MIT license.