crosswalk

How to check for Crosswalk WebView user agent?

对着背影说爱祢 提交于 2019-12-24 05:26:22
问题 I need to check if a mobile user is accessing the website through a Crosswalk WebView and enable/disable some niceties. How can I check if user is accessing using Crosswalk WebView? What is the user string for Crosswalk WebView? 回答1: Found the correct user agent string for crosswalk webview on GitHub: if(navigator.userAgent.toLowerCase().indexOf('crosswalk') > -1) { // this is crosswalk view } else { // this is NOT crosswalk view } 来源: https://stackoverflow.com/questions/36945869/how-to-check

Build Ionic application failed because of Crosswalk

佐手、 提交于 2019-12-23 09:39:11
问题 Suddenly, I start to get this error: C:\Users\andrey.shedko\Documents\Visual Studio 2015\Projects\BBN.Mobile\BBN.Mobile>ionic run android Running command: "C:\Program Files\nodejs\node.exe" "C:\Users\andrey.shedko\Documents\Visual Studio 2015\Projects\BBN.Mobile\BBN.Mobile\hooks\after_prepare\010_add_platform_class.js" "C:\Users\andrey.shedko\Documents\Visual Studio 2015\Projects\BBN.Mobile\BBN.Mobile" add to body class: platform-android ANDROID_HOME=D:\Android\SDK JAVA_HOME=C:\Program Files

Crosswalk Error about “Request was denied for security”

隐身守侯 提交于 2019-12-20 19:43:13
问题 I use cordova 6.3.1 and crosswalk of cordova plugin 2.1.0 in Android App. I use self certification in server. When I send http post request from cordova app to server, "Request was denied for security" message appeared in screen bottom possion and http post request is fail. I can send http post request using old crosswalk of cordova plugin(1.5.0). Do you know someone solutions. ※Following site method is not work http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova

webaudio not working with ionic using crosswalk on android device

为君一笑 提交于 2019-12-19 09:06:03
问题 I created an ionic webrtc app that runs perfectly when using ionic serve (on web browser, witch is normal). but was not working at all on the device since the getUserMedia function was not able to execute. The solution i found is to install crosswalk, update permissions in the AndroidManifest.xml and add the meta tag on the index.html for content security: <meta http-equiv="Content-Security-Policy: media-src: 'self' mediastream"> Now, i have a working ionic webrtc app but only video, the

Cordova + Crosswalk iOS still using UIWebView

冷暖自知 提交于 2019-12-18 12:00:05
问题 I didn't find a lot of instruction setting up crosswalk for iOS it seems like it should be as simple as: cordova plugin add cordova-plugin-crosswalk-webview cordova build ios Because I've had issues with plugins not taking effect before I do the following: cordova plugin add cordova-plugin-crosswalk-webview cordova platform remove ios cordova platform add ios cordova build ios After having done this, when I capture the view hierarchy and inspecting that it's still using "UIWebView" which has

Build error after adding Crosswalk plugin to a Cordova Android project

人走茶凉 提交于 2019-12-18 11:11:34
问题 I'm using the latest cordova android (5.1.0). The project is building and running fine without crosswalk, but after I add the crosswalk plugin using cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git I get the following build error: Error:15:53:54.127 [ERROR] [system.err] /Users/or/Projects/Test/cordova/platforms/android/src/org/crosswalk/engine/ XWalkWebViewEngine. java:48: error: cannot find symbol 15:53:54.127 [ERROR] [system.err] import org.xwalk

How to install crosswalk lite plugin using cordova cli

送分小仙女□ 提交于 2019-12-13 02:56:05
问题 I would like to know how to use "cordova plugin add cordova-plugin-crosswalk-webview" but instead install the lite version. Thanks. 回答1: If you use Ionic Framework it becomes very easy. So, using Ionic you could choose among all available browser listed by the Ionic CLI command ionic browser list . Output example: Android - Browsers Listing: Available - Crosswalk - ionic browser add crosswalk Version 8.37.189.14 Published Version 9.38.208.10 Published Version 10.39.235.15 Published Version 11

Open link in device's default browser. Crosswalk android application

社会主义新天地 提交于 2019-12-10 21:10:14
问题 I am creating an app for Android devices using HTML and JavaScript. I am using Crosswalk (15.44.384.12) to bundle this into an Android application, which pretty much creates an android app with a web browser built in, to run my application. I have everything working on the Android device, but I am struggling to find out how to open a link from my app in the device's default browser using JavaScript. If I use window.open(), it will just load within my app, which is not what I want. I have

Android project with Unity JNI libraries crash after Crosswalk was added

断了今生、忘了曾经 提交于 2019-12-10 11:44:41
问题 I have android app where I embed game that I make in Unity 3D. Other part of app is written in Cordova/Ionic and I need to use Crosswalk to support older android phones. But when I add Crosswalk to my project, app crashes right after start with following output: W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app/com.example.app-2/lib/arm/libmono.so': couldn't get XW_Initialize function. W/chromium: [WARNING:xwalk_extension_server.cc(407)] Failed to

How to use back button to go back with XWalkView of CrossWalk, or disable it?

蹲街弑〆低调 提交于 2019-12-10 11:06:32
问题 I use below code to go back in webview at first try. But for the low render ability, I used XWalkView replace the WebView. public boolean onKeyDown(int keyCode, KeyEvent event) { WebView mWebView = (WebView) findViewById(R.id.webview); if (event.getAction() == KeyEvent.ACTION_DOWN) { switch (keyCode) { case KeyEvent.KEYCODE_BACK: if (mWebView.canGoBack()) { mWebView.goBack(); } else { finish(); if (MainActivity.mTencent.isSessionValid()) { MainActivity.logout(); } } return true; } } return