Ionic2: This app isn't compatible with your phone - android

After installing my Ionic2 app on real device, it became slow - which wasn't while testing on browser during development. Then I came across Crollwalk, a tool/plugin to enhance Hybrid app performance on device.
I then generated an .apk and attempted to install on real-device, only to get the error "This app isn't compatible with your phone".
After few Bing/Google searches, I got to know that the project was last supported for WebView on Cordova 6.3 at the Crosswalk Project official website.
My dev env is
Cordova: 6.5.0,
Ionic: 2.2.3
How do I downgrade Cordova to the supported version of Crosswalk without affecting Ionic and the project it self?
Thanks for your usual assistance.

Finally, I got a walk-around!
I had to create build-extras.gradle file and added cdvBuildMultipleApks=false to it. That now generated a single unsigned apk file (instead of armv7 and x86 respectively) which I signed & was able to launch the app!
Before then, I used to sign the android-x86-release-unsigned.apk.
Thanks to building-combined-armv7-x86-apk-after-crosswalk-integration-in-an-ionic-project

Related

Problem compiling Ionic (Angular) app in Android

I have an app made in Ionic5 framework with the support of Angular, when I run ionic serve --lab, the android app works without problem but the problem is that when I export the project to Android Studio with (ionic capacitor copy android) and I run the app on my device suddenly crashes and stops.
I have been looking for information but I have not found any useful data. My question is more generic than this platform is used to. What error detecting techniques I should use (Android Studio, npm vulnerabilities) and what are some typical cases that generate this error?
I let some posible useful project data:
I use Firebase for database and back-end services.
NPM warn me due to the fact that I have 10 vulnerabilities.
Ther could be a number of reasons for this.
Try running opening chrome://inspect/#devices where you can select your device and see all console logs.
Also try syncing your gradle files in android studio

Android/Crosswalk app installs using debug key, but "isn't compatible" once signed

I'm currently building an app using Cordova & Crosswalk, and building it using Phonegap Build.
When creating a debug app with no key and manually installing the apk, the app installs correctly and works as expected.
However, as soon as I sign the app for production, whenever I try to install the app I get the message:
App not installed.
This app isn't compatible with your phone.
I've looked into sdk versions, features, architectures etc and as far as I can see the phone I'm using is fully compatible. I don't understand what could be changing between the unsigned and signed apps to trigger this error.
What could be changing when I sign the app which suddenly makes the app incompatible, and causes the install to fail?
While I don't understand the specifics about the signed/unsigned issue, the root cause of this was a change made in Cordova Android 6.4.0 which broke compatibility with Crosswalk:
Google also has changed the Gradle DSL used and currently support for the Crosswalk WebView is broken in this version of Cordova as a result. Unfortunately, since Crosswalk is no longer supported by the Crosswalk Project, we do not know whether this issue will be fixed.
If you require support for Crosswalk, we recommend that you continue using cordova-android 6.3.0 at this time and avoid using or upgrading your project with Android Studio.
As mentioned in the article, forcing the build process to use 6.3.0 fixed the issue for me.
I was facing the same issue today. After tons of research, found a solution. Add the following line to your config.xml:
<preference name="xwalkMultipleApk" value="false"/>

Phonegap - confused about Android and IOS

I am using PhoneGap and Framework7 (UI) for my app. The app will be deployed on IOS, Android and Windows.
The app needs to play audio and also record audio. I will be using alot of javascript code for checking user answers and adding user scores.
My problem.
I looked at a few tutorials and examples. I am really confused.
I am using the latest version of PhoneGap. I am using PhoneGap Desktop to create a new project. I also downloaded the PhoneGap app to run it on my device. (All working)
My confusion.
I see in some tutorials it says this.
In order to create a PhoneGap project for Android, all you have to do
is run the command to add a platform to the project: $ phonegap platform add android
Do I need to add this too? I have created a build for the android version using PhoneGap Build (www.build.phonegap.com)
Do I have to change my app structure to accommidate both IOS and Android?
Is there a way to build for IOS on PhoneGap build without a certificate/key from Apple? I just want to test the app and see if its working on IOS. I am still in the beginning stage of development.
Thanks in advance
The PhoneGap Desktop / Developer app combination, while great, is not a perfect representation of how your app will behave when built and installed on its own. You will need to do further testing to ensure your app works as expected.
The templates usually come with all the core plugins installed. These will ask for far more permissions than your app actually needs. You'll need to remove these from config.xml at some point prior to production.
config.xml is the preferred mechanism now for indicating which platforms and plugins are required by your app. Any missing platform or plugin will be automatically installed by any of the build tools (CLI or PhoneGap Build). See the Cordova documentation and PhoneGap Build documentation for more information.
PhoneGap Build determines which platforms you want to build for by looking for <platform name="..."> tags in your config.xml file. If you have none, all platforms are built, but at some point you'll need to limit this to the platforms you intend to target.
Note: IF you have the CLI installed, you can add platforms and save them in your config.xml by using cordova platform add --save android.
The same applies to plugins. Note that the PhoneGap Developer app only supports core plugins and a few third-party plugins.
You do not usually need to change your project structure to support iOS and Android. You may need to handle quirks that are present on each OS, but you should be able to do so using the same code base.
You cannot build an app on PhoneGap Build for iOS without having the requisite certificate and provisioning profile from Apple.

Cordova (android) deploy issues

I am a newbie on using cordova (or phonegap), I was doing some demo projects and found a strange problem on deploying the projects on my android phone (Nexus 5)
when I run: "cordova run android"
everything seems fine and the app is installed on my phone as well, however, I found that after successfully installing the app, the EARLIER installed app /demos (created by cordova as well) was removed!!!
I was wondering if it was related to any platform dependent settings on android? It seems that no matter what the built apk's name was, it would eventually uninstall the already installed cordova apps; by then the new cordova app would be installed (sort of like file copying and the new file would overwrite the existing file -- assume same file name)
Anybody got clues on this???
Jason

How to deploy Titanium Projects to Android customers?

I want to deliver a finished and working Titanium App to Android customers. But I can't find any documentation about how to produce something like a jar-file that I can create to directly install it on Android devices without the Android market or the Titanium IDE at hand (I can't expect my users to install Titanium IDE first, right).
When you do a build for device in titanium studio, titanium studio creates an apk file for you.
You can find this at Titanium Workspace/Your Project/Build/Android/bin/app.apk. This is the app file you want.
This file can be e-mailed to your customers, and if the android phone is set to accept apps from 3rd party locations, they can install it through this e-mail.
See the Appcelerator Wiki:
https://wiki.appcelerator.org/display/guides/Deploying+to+Android+devices
and
https://wiki.appcelerator.org/display/guides/Distributing+Android+apps

Categories

Resources