Coder Social home page Coder Social logo

cordova-plugin-x5-webview's Introduction

cordova-plugin-x5-webview

Makes your Cordova application use the Tencent X5 WebView(TBS) instead of the System WebView. Requires cordova-android 4.0 or greater.

Benefits

WebView doesn't change depending on Android version Capabilities: such as WebRTC, WebAudio, Web Components Performance improvements (compared to older system webviews)

Drawbacks

Increased APK size (about 300KB)

Install

The following directions are for cordova-cli (most people). Alternatively you can use the Android platform scripts workflow.

Open an existing cordova project, with cordova-android 4.0.0+, and using the latest CLI. X5 variables can be configured as an option when installing the plugin
Add this plugin
$ cordova plugin add cordova-plugin-x5-webview

Build
$ cordova build android

The build script will automatically fetch the X5 WebView libraries from X5 project download site (https://www.npmjs.com/package/cordova-plugin-x5-webview) and build for both X86 and ARM architectures.

cordova-plugin-x5-webview's People

Contributors

jeremyup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cordova-plugin-x5-webview's Issues

An install failure on ionic technology stack when I tested the plugin, Error: already exists!

Error info:

Installing "cordova-plugin-x5-webview" for android
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-x5-webview':CordovaError: Uh oh!
"/Users/../**/../platforms/android/src/org/jeremyup/cordova/x5engine/X5CookieManager.java" already ex
ists!
    at copyNewFile (/Users/../**/../platforms/android/cordova/lib/pluginHandlers.js:245:45)
    at install (/Users/../**/../platforms/android/cordova/lib/pluginHandlers.js:43:17)
    at ActionStack.process (/Users/../**/../platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (/Users/../**/../platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
    at PluginManager.addPlugin (/Users/../**/../platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
    at /Users/../**/../platforms/android/cordova/Api.js:243:74
    at _fulfilled (/Users/../**/../platforms/android/cordova/node_modules/q/q.js:854:54)
    at self.promiseDispatch.done (/Users/../**/../platforms/android/cordova/node_modules/q/q.js:883:30)
    at Promise.promise.promiseDispatch (/Users/../**/../platforms/android/cordova/node_modules/q/q.js:816:13)
    at /Users/../**/../platforms/android/cordova/node_modules/q/q.js:570:49
Error: Uh oh!
"/Users/../**/../platforms/android/src/org/jeremyup/cordova/x5engine/X5CookieManager.java" already exists!

Plugin list

$ cordova plugin ls
at.modalog.cordova.plugin.cache 1.1.0 "Cache"
com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions"
cordova-hot-code-push-plugin 1.5.3 "Hot Code Push Plugin"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-file 5.0.0 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.7.0 "File Transfer"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-qqsdk 0.9.6 "QQSDK"
cordova-plugin-screen-orientation 2.0.2 "Screen Orientation"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.3.0 "StatusBar"
cordova-plugin-wechat 2.1.0 "Wechat"cordova-plugin-weibosdk 0.6.1 "WeiboSDK"
cordova-plugin-whitelist 1.3.1 "Whitelist"cordova-plugin-x-toast 2.6.0 "Toast"
cordova-sqlite-storage 2.1.2 "Cordova sqlite storage plugin"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"

plugin 'cordova-plugin-x5-webview 3.1.0 "X5 WebView Engine"' was added into the list at the same time, but it's not working and the index.js in that plugin package was missed, I supposed that is there any wrong with some necessary configuration I missed? or whether there is a conflict with this plugin : ionic-native-transitions.

input(type=file)无法选取照片的问题

miui10.3 红米6pro 安卓9 在第一次安装app后使用input(type=file)可以正常打开相册,但是选中照片后input内值没有改变。debug模式下需要将
Uri[] result = FileChooserParams.parseResult(resultCode, intent);
替换为
Uri[] result = android.webkit.WebChromeClient.FileChooserParams.parseResult(resultCode, intent);
虽然可以解决问题,但是不知道这样改动有木有其他副作用希望官方可以处理下这个问题
文件名
X5WebChromeClientvvv.java
具体可以看我博客
https://www.imcyk.com/post/137.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.