Ionic 3 targeting android 4.4.2

Hi, newbie to ionic

I’m developing an app that runs well in android 7 but the customer ask me for running the app on android 4.4.2.

How can achieve this?

ionic info:
cli packages: (path)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : not installed

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v8.11.3
npm  : 3.10.9
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

thanks

Your problem is caused by the cordova-plugin-ionic-webview plugin that is part of every new or updated Ionic app. The current version 2.x doesn’t support Android 4.x any more.

Read here for more background and possible solutions: https://ionic.zone/debug/ionic-and-android-4

Hi, thanks for your response.

It looks like i’m using v 1
ionic cordova plugins

cordova plugin ls
cordova-plugin-device 2.0.1 “Device”
cordova-plugin-geolocation 4.0.1 “Geolocation”
cordova-plugin-ionic-keyboard 2.0.5 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 1.1.16 “cordova-plugin-ionic-webview”
cordova-plugin-mauron85-background-geolocation 2.3.5 “CDVBackgroundGeolocation”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-whitelist 1.3.3 “Whitelist”

Ok. What exactly is your problem then? Are you getting an error message?

After loading icon, blank page.

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android Look at the console and network tabs for errors.

Ater testing the app with chrome dev tools, this is the result.
When the app starts, the loading appears, then a blank page is shown for a few seconds, then my home page is shown with a error message.

image

When I click the ok button, the app close.

And this is a capture of the chrome dev tools.

Thanks in advance

Do you get the same when you create a new project with ionic start and run that one?
Do you have a newer/faster device for testing? Does it work there?

Blank page, but no error.

image

The error in line 61

See my previous questions.

My last reply are images from a blank new app in the same device with android 4.4.2
The first app runs ok on android 7

Your Cordova tooling seems to be out of date, which might be causing all kinds of problems.
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here: How to update Cordova CLI, Platforms and Plugins · ionic.zone

I faced a similar problem that was solved with:

$ sudo npm update -g cordova ionic
$ npm outdated
$ npm update
$ rm -rf www platforms
$ ionic serve -c

I hope it help you too.

updated to 7.1.1 and the same problem

Can you test another Android device with 4.4.2? Can you update the Chrome webview on the device?

Same results with samsung tablet and 4.4.2. I can try to update, but, what about customers?

Right now this is just about understanding what is actually wrong and causing the problem.

trying to update from play store, but WebView for android is not compatible with Samsung Galaxy tab 4. Maybe can be done manually?

Thanks for your help and patience

No idea, sorry. It’s really strange as the app should work just fine.

Can you maybe upload the app, built with ionic build to a webserver and load the URL in the stock browser of the device and see if it works there?

published and running on samsung galaxy tab 4 with chrome…