All Projects → zsxsoft → cordova-plugin-x5-tbs

zsxsoft / cordova-plugin-x5-tbs

Licence: Apache-2.0 license
Use Tencent Browser Service(TBS) instead of System WebView for Cordova App

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to cordova-plugin-x5-tbs

WebView-Advanced
A collection of android webview hack
Stars: ✭ 25 (-61.54%)
Mutual labels:  webview, chromium
x5 webview flutter
一个基于腾讯x5引擎的webview flutter插件,简化集成,一行代码打开视频播放,暂时只支持android使用
Stars: ✭ 90 (+38.46%)
Mutual labels:  webview, tbs
flutter-webview-windows
A WebView2-powered Flutter WebView implementation for the Windows platform.
Stars: ✭ 83 (+27.69%)
Mutual labels:  webview, chromium
Journey
JCEF-powered cross-platform web browser
Stars: ✭ 68 (+4.62%)
Mutual labels:  webview, chromium
Cordova Plugin Ionic Webview
Web View plugin for Cordova, specialized for Ionic apps.
Stars: ✭ 419 (+544.62%)
Mutual labels:  cordova, webview
Pandomium
Pandomium is the JCEF (Java Chromium Embedded Framework) implementation dedicated for the Maven based projects
Stars: ✭ 146 (+124.62%)
Mutual labels:  webview, chromium
Journey
JCEF-powered cross-platform web browser
Stars: ✭ 85 (+30.77%)
Mutual labels:  webview, chromium
Cl.kunder.webview
This cordova plugin enables you to open a second webview
Stars: ✭ 36 (-44.62%)
Mutual labels:  cordova, webview
Vanadium
Privacy and security enhanced releases of Chromium for GrapheneOS. Vanadium provides the WebView and standard user-facing browser on GrapheneOS. It depends on hardening in other GrapheneOS repositories and doesn't include patches not relevant to the build targets used on GrapheneOS.
Stars: ✭ 365 (+461.54%)
Mutual labels:  webview, chromium
ungoogled-chromium-portable
🚀 Ungoogled Chromium portable for Windows
Stars: ✭ 96 (+47.69%)
Mutual labels:  chromium
vscode-android-webview-debug
Debug your JavaScript code running in WebViews on any Android device from VS Code.
Stars: ✭ 18 (-72.31%)
Mutual labels:  webview
QuickWebKit
A great & strong plugin based WebViewController. 一款基于插件的 WebView 视图控制器,您可以基于它设计您的浏览器插件,然后像积木一样来组装它们。
Stars: ✭ 29 (-55.38%)
Mutual labels:  webview
gowebview
tool to build android apps with WebView from your golang http server; moved to gitlab.com/microo8/gowebview
Stars: ✭ 35 (-46.15%)
Mutual labels:  webview
cordova-common
Apache Cordova Common Tooling Library
Stars: ✭ 30 (-53.85%)
Mutual labels:  cordova
ellenorzo
Arisztokréta: Nem hivatalos KRÉTA-kompatibilis ellenőrző alkalmazás
Stars: ✭ 17 (-73.85%)
Mutual labels:  cordova
Uranium
Fast and versatile implementation of CEF for Unreal Engine
Stars: ✭ 51 (-21.54%)
Mutual labels:  chromium
openfoodfacts-cordova-app
Open Food Facts mobile app, developed with Cordova, for iOS, Android, Windows Phone, FirefoxOS etc.
Stars: ✭ 24 (-63.08%)
Mutual labels:  cordova
SAML-tracer
Browser extension for examining SAML messages
Stars: ✭ 104 (+60%)
Mutual labels:  chromium
ux-lab
No description or website provided.
Stars: ✭ 49 (-24.62%)
Mutual labels:  webview
throughout
🎪 End-to-end testing made simple (using Jest and Puppeteer)
Stars: ✭ 16 (-75.38%)
Mutual labels:  chromium

cordova-plugin-x5-tbs

CordovaWebView替换为腾讯的X5。使用腾讯TBS完整版SDK。

优劣比较

优势

  • 安装包体积小:由于QQ、微信、QQ空间等在中国的巨大装机量,与Crosswalk比较,X5内核仅增加不到300KB左右的apk大小。
  • 兼容性强:统一不同设备到同一内核,不需要担心国产ROM奇特“定制”及老版本WebView造成的兼容性问题。
  • 视频播放能力强:自带多种解码器,也可支持直播。
  • 新浏览器特性支持:如HTTP/2、Service Worker等。

劣势

支持环境

  • cordova-android > 6.4
  • Android > 4.0

安装

cordova plugin add cordova-plugin-x5-tbs

为确保App启动后即启动X5内核,需要在项目的MainActivityonCreate方法内,增加以下代码:

QbSdk.initX5Environment(this, null);

另出于某些玄学原因,如应用出现Crash,请手动将以下权限复制入AndroidManifest.xml

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- 硬件加速对X5视频播放非常重要,建议开启 -->
<uses-permission android:name="android.permission.GET_TASKS" />

环境

当前版本

X5:tbs_sdk_thirdapp_v4.3.0.1148_43697_sharewithdownloadwithfile_withoutGame_obfs_20190805_175505.jar

内核替换

你当然可以手动升级到X5内核最新版,或者替换成精简版内核。你只需要删除platforms/android/libs/tbs_sdk_*.jar,替换为你需要使用的版本即可。这会使此插件无法通过cordova plugin remove等指令被完全删除,还请注意。

感谢

此项目继承自项目:https://github.com/offbye/cordova-plugin-x5engine-webview

技术支持

与本项目有关的问题,如加载后无法正常启动,在本项目Issue区内提交新Issue即可。

X5相关问题,请参阅:X5技术指南

常见玄学问题

为什么X5内核没有被成功加载

先测试是否是64位程序的问题。修改platforms/android/build.gradle,在productFlavors之下,armv7之上,加入ndk{abiFilters "armeabi"},再看看是否有问题。该条问题见:https://x5.tencent.com/tbs/technical.html#/detail/sdk/1/34cf1488-7dc2-41ca-a77f-0014112bcab7

请使用官方TBS Studio测试,如其安装的TBS Demo左上角仍显示Sys core,证明X5内核可能无法被第三方App调用。请参阅X5技术指南或反馈到X5官方。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].