Add/download crosswalk in run time when need - ionic-framework

my app's size is about 5 MB.
I use of crosswalk in my app for run on android 4.4 and less.
but when add crosswalk to my app for run in android 4.2 increased size to 30 MB.
is there solution for add/download crosswalk after install app on device and if android version less of 4.4 ?
I want to install app in device if android version less 4.4 then download crosswalk then add to app.
I can to use crosswalk Download Mode in ionic ?

Related

Flutter - Can't install apk on android

I'm new to flutter and on a phone I have it works and the app runs fine, but I sent the apk to another device and it couldn't be installed, I don't know if it's because of a plugin I'm using that is "speech to speech", since in that plugin I changed the version of min sdk to 21 but the android that I try to install has an android version of 10 that is higher, it seems to me, what would be the cause?
Remember Android no longer accept the app which has not been signed as release,. make sure you are making you are signing the app correctly, Android studio will help you.
The build flavor should be release, and the signature must be created before. But the easiest way is to run the app in profile mode,
flutter run --profile
Profile mode run as release mode but doesn't require to be manually signed.
There could be other reasons but do you know that the Flutter app cannot be installed on x86 Android
Flutter does not currently support building for x86 Android

Ionic DevApp not found in play store

I am trying to install ionic DevApp in my android lollipop version. But I am not finding the app in play store.
Seems like it was removed from the Google playstore, meanwhile you can use the latest version that was available in the store:
https://apkpure.com/ionic-devapp/io.ionic.devapp
This is because Ionic is now focusing on native-tooling and has now moved to Capacitor, therefore Ionic DevApp is no longer maintained thus it's removed from the app stores, not completely for iOS if you've installed it before
To go around this, search it's APK file from google.
Or for iOS go to App Store > Your Profile Avatar > Purchased, look for Ionic DevApp then re-install it (it will be there only if you installed it before).

Mismatch of CPU Architecture for the Crosswalk using Cordova

I have integrate crosswalk plugin in my Cordova application. When I publish this app to google play. I'm not able to open in my Asus gen phone 2 it throws following error
Error message:Mismatch of CPU Architecture for the Crosswalk
Cordova version - 6.0.0
Crosswalk Version - latest
Can any one help me for resolving this problem?
The Asus phones tend to use an Intel x86 chipset. When doing anything with native code, you need to account for the various chipsets used by devices. Crosswalk is built with native code. It sounds like you did not include builds for both the ARM and x86 chipsets to Google play.
The Cordava Crosswalk plugin out-of-the-box will give you 2 chipset builds, 1 for ARM and 1 for x86 CPU architectures. You should be uploading both APK output files to Google Play.
NOTE: Since Google play changed the max APK size from 50mb to 100mb, you now have the option of package both chipsets together. However, you may still want to consider having a separate build for each and uploading them separately.

Is there a way to download the crosswalk runtime after the app has been installed on android?

Compiling an app with crosswalk through cordova would increase the size of the app by approximately 20 Mb.
So, I was thinking if downloading and running code on crosswalk runtime after the application is installed would work. If this works then I would download and use crosswalk runtime on certain Android platforms (< Android 4.4.3) only. And use webview on remaining platforms. Just want to avoid building two different apps with same code for different platforms.

Emulator with API 15 and Android 4.0.3 shows in settings 4.0.4

I need to emulate Android device (Samsung Tab 2) with version 4.0.3, but after choosing it in Android Virtual Device Manager and running it I get info in settings that it is a 4.0.4 version.
I need to run my web app written in html5 to reproduce some bugs.
Any idea about it?
The problem is that the emulator Android versions only correspond with specific versions from each API level. 4.0.3 and 4.0.4 are both in API level 15, so the emulator is only made available for Android 4.0.4. There is no Android 4.0.3 emulator; you'd have to find the system image for that or build it yourself.