I have created an Ionic Angular Project and added cordova-plugin-crosswalk-webview, since I need to integrate Webrtc.
But still, when build the android app and run in android device of version 7.1, I get error, android browser 4.0 doesnt support this.
How to make my app to use crosswalk webview instead of android?
I have created a entirely new ionic project, added the cordova plugin, before adding platform to it.
Then I build the apk, it worked with crosswalk in android.
Related
To increase compatibility with older Android devices (4.0+) for my Cordova App I am wanting to use the Crosswalk Webview instead of the device webview. I am using Cordova Tools (CLI 6.3.0) for Visual Studio (2015 - Update 3) and have added the Plugin "Crosswalk WebView Engine" using the plugins panel in the config.xml. However, when I start up the app, debug it and inspect the useragenet (using "navigator.userAgent" from the console) it is not reporting as running using the Crosswalk WebView Engine.
Now I have heard some people suggest that you remove the Android platform, install the plugin and then rebuild, but that isn't fixing it for me. Perhaps I am removing the Android platform incorrectly? (I am just deleting the folder from disk).
Is this a case of my build steps being incorrect? Any assistance would be appreciated.
After persisting with this problem, assuming it to be a problem with my set-up, I got it working.
The key was to update everything. I installed the latest Java JDK (v1.8) - Updated mt CLI version to 6.5.0 - Installed any updates using the Android Update Manager (I also updated some files within Android Studio itself) and then finally installed Crosswalk (2.3.0).
Works like a dream now.
I need to integrate crosswalk plugin in my Android project to support webview of older versions in android. I'm developing in Android Studio and tried to follow the instructions in this link: https://crosswalk-project.org/documentation/cordova.html
My Android project is separated from the cordova base project so obviously
I got this message:
"Error: Current working directory is not a Cordova-based project."
My current app is working without the base cordova project
and I need to install the plugin manually.
I have an existing Cordova app that I've been testing in Xcode.
The workflow was simple:
1. cordova build ios
2. open xcode project file in Xcode
3. either run in simulator or build directly to device
I'm tyring to figure out the same for running an Android build for testing.
1. Installed Android Studio
2. Installed and configured Android SDK 19
3. When I setup my run configuration, it says:
"AndroidManifest.xml doesn't exist or has incorrect root tag"
I've followed the trail to Cradle, migrating existing project to Cradle, but have been unsuccessful so far in figuring out how to take an existing Cordova project and getting it to run on my device.
Is there a workflow as easy as Xcode's 1...2...3... for Android?
As far as I know, android studio isn't officially supported by cordova/phonegap yet, you should use the ADT.
But here you can read how to work with android studio beta and cordova/phonegap
http://iphonedevlog.wordpress.com/2014/10/10/using-android-studio-beta-with-cordova-phonegap/
I have just learned of intel xdk and i am going over how it works and what are steps to produce apps.. However, i am stuck at some place in understanding it. Can you clarify some stuff for me.
From what i understand:
Intel XDK by default provides apis that extend cordova apis. And therefore cordova apis are included in the intel xdk and if someone wants to use them they just include a script tag with src set as 'cordova.js'. So my question if i am using cordova api instead of intel xdk apis..( i don't know why would someone do this..when both are the same thing so why go an extra trouble of adding cordova script tag then reference etc.) then can i build it as android app and cordova apis will work? or i have to choose cordova android app to make use of cordova apis?
My guess is just choosing to build for android will allow me to use cordova api because this is a big step and it'd have been in docs..maybe it's!?!?!
Yes, you can build as "Android" app and cordova APIs will work as long as "cordova.js" script tag is included. It was mainly meant for building apps with intel.xdk APIs, Cordova 2.9 support was later added, Cordova plugins are not supported in this build.
"Cordova for Android" is in beta release, this is more like an actual Cordova app built using Cordova CLI, Cordova plugins will soon be supported, intel.xdk APIs are not supported. You have to include "cordova.js" script tag for Cordova APIs to work. This will become the default build for Android in future.
I'm started with a new phonegap application and I want to use the 2.2 Android API.
I've got error even in the initial project.
I can resolve these problems using a major version of the API (4.x).
Is there a way to build application with PhoneGap 2.6 for android API 2.2?
maybe I do somenthing wrong in the
./create <p1> <p2> <p3>
project.
using oracle-jdk7U21 and android-sdk-linux
the ANDROID_BIN is set to
android-sdk-linux/tools/android
EDIT and SOLVED
It's everything fine for compatibility build with Android API 16 and using a device that support API 8.
so i figured out it's ok using the android sdk 4.x and run on device with andorid 2.2 (until now)
for downloading android sdk follow the link Android
and for phonegap eclipse