Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.69 KB

File metadata and controls

48 lines (30 loc) · 1.69 KB

cordova-plugin-detect-webview-engine

Linting Security

Known Vulnerabilities

Commitizen friendly License npm

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

cordova.plugins.webviewEngine.isUIWebView().then((isUIWebView) => {
    // returns true or false
});

Check for WKWebView

cordova.plugins.webviewEngine.isWKWebView().then((isWKWebView) => {
    // returns true or false
});

Built by (c) Tim Brust and contributors. Released under the MIT license.