cordova app fails in runtime on device - android

I've got a cordova app (build on Ionic framework) that fails in runtime on my Android device. Though It works fine on my genymotion emulator. The installation is working and the app starts, but it exits abruptly on some point.
I don't think I can debug it because the OS is Jelly Bean 4.2 (at least 4.4 needed). But can I find some logs? Maybe create them myself.

Integrate a robust crash analytics engine such as ACRA or Crashlytics, now bought by Twitter and made free as part of Fabric.
This way the engine records and sends crash data to your online account, including many many details and the stack trace.

Related

Most apps crashes on Android emulator

I'm running android emulator with a virtual device API version 21 (also same testing on 22) because apparently my processor, AMD Phenon II x6 1055t, is not supported by google anymore as I have researched here on SO. Indeed creating a device with version 21 or 22 successfully made the emulator open and boot the virtual device OS.
Now my problem is that the app I'm developing does not open, it either crashes or freeze during load.
This is not unique to the app I'm developing, maps, settings, and the sample project from android studio also do not open. For maps and settings I see the message that google play services stopped working.
BTW if I reboot the device, this message that google play services stopped working floods with popups for about 2 minutes until it stops after that time.
I have captured the error messages by running the emulator with this command: emulator #Pixel2_21 -logcat '*:v'
and pasted the complete log here: pastebin.com/acgF6A8K
I can provide more logs if someone instructs me on how to do so.
I wonder if shows any clues or if I'm still at a stage that it could be anything
Thanks in advance
Update 1.
By selecting another image that does not include google API I was able to launch some of the native apps that were not loading before. Same API version 21, just selected another one that do not include the google API.
The app I'm developing still does not load though
Update 2
See the link below for more info on specific compatibility for my processor related to the Android OS API versions:
https://issuetracker.google.com/issues/37076174

Vuforia tracking works in Editor but not on Android Device

I am using Unity 2018.2.17f1 and Vuforia Unity Extension Version 7.5.26 and build a App tracking an Cylindric Image Target.
The tracking is working fine in Editor, however when I try to run it on my phone the tracking does not work.
When looking at the Log output of the phone I see: Vuforia initialization successful
and there are no errors and also no Message about any success of tracking ...
Anyone had a simmilar issue?
Sometimes it may cause due to android versions. Newer API levels require runtime permissions. Grant camera permission and kill the app and then run the app, bit weird but it may work.

Cocos game Application Crash offline log

We build Android-based game Apps on the Cocos2d platform using C++ and JavaScript. App uses no internet.I can able to see the crash report when we use the android studio to debug. but how to catch the log/report when the app crashes on the mobile device when it's not connected to Computer.
Use crash reporter, which allows your to view crash-related information on the web when a crash occurs. It's easy to integrated into your project by reference each document.
You can use Crashlytics by Fabric (recommended)
The most powerful, yet lightest weight crash reporting solution. You can easily integrate with your app through gradle and get crash report.
Enable NDK crash reporting in your project, for more information check this thread.
BugSense

Android Studio Preview 3.0 - Application installation failed when running instant app

I am new to running instant app. I have created a new "Hello World" project with instant app support, according to android developer documents.
But, when running "instantapp", the following error occurs:
I would appreciate it if anyone could help.
Note: There is a known issue running Instant Apps on the emulator image that includes the Google Play Store which will give this same error. For now, please use the emulator without Play Store.
Google Play Services giving statusCode=API_UNAVAILABLE means your device is not able to run Instant Apps for one reason or another. For example, you are not using a supported device or you are not in a launched country. Please see here for a list of supported development devices and here for a list of countries Instant Apps are available in.
The emulator should still work for development and will run outside of any restrictions. For instructions on setting up an emulator for Instant App development see here:
https://developer.android.com/topic/instant-apps/getting-started/setup.html#setup-emulator

Cordova: HTTP requests seem to be blocked on android (production) application

I published yesterday a Cordova application on the Android market (aka Google Play Store) and I noticed a weird bug that I can't reproduce in dev environment.
In fact, all the HTTP requests seem to be blocked by the application (The Ads won't show, the inline images in the articles won't show, the video won't load, etc).
I properly set the access origin to "*" in my config.xml file and when I take a look at the app permissions I see it can receive information from the Internet. Of course the application works properly when I build/install it from my computer.
Also I don't see how I could fix this or even start debugging it.
Have you got any idea how I could debug this ?
Thanks
NB: The apps works great on iOS devices (dev and prod)
I solved my issue.
The problem was that I removed the plugin jsHybugger (before building and signing the app) with the following command
cordova plugin rm org.jshybugger.cordova
and did not regenerate the android platform afterward.
So I just did
cordova platform rm android
cordova platform add android
and all went fine.
Apparently Cordova keeps some files of plugins even after they're removed from the project. I guess those jsHybugger calls where making something crash on my app (because the plugin wasn't there anymore)...
NB: To debug the production version of my app, I simply installed the corresponding apk (found in platforms/android/bin/MY_PROD_APP.apk) on my phone (the one I sent to Google Play Store)

Categories

Resources