Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 months ago
JSON representation

🅰️ ⁉️ 🅱️ Apache Cordova plugin to determine whether the application is using UIWebView or WKWebView engine

Awesome Lists containing this project

README

        

# cordova-plugin-detect-webview-engine

[![Linting](https://github.com/timbru31/cordova-plugin-detect-webview-engine/workflows/Linting/badge.svg)](https://github.com/timbru31/cordova-plugin-detect-webview-engine/actions?query=workflow%3ALinting)
[![Security](https://github.com/timbru31/cordova-plugin-detect-webview-engine/workflows/Security/badge.svg)](https://github.com/timbru31/cordova-plugin-detect-webview-engine/actions?query=workflow%3ASecurity)

[![Known Vulnerabilities](https://snyk.io/test/github/timbru31/cordova-plugin-detect-webview-engine/badge.svg)](https://snyk.io/test/github/timbru31/cordova-plugin-detect-webview-engine)

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](https://commitizen.github.io/cz-cli/)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![npm](https://img.shields.io/npm/v/cordova-plugin-detect-webview-engine.svg)](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.