Ionic app not working in some android device which android version is greater 5.0

In my ionic 2 app i am facing problem in some android device which having android version greater 5.0.
when i start app in my device after splash screen display home page data successfully. but in few device which having android version 5.0 and 6.0 into that after splash screen only white screen display no data display.

can any one have solution?

What devices?
What Android versions exactly?
Also post your ionic info output please.

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.

@Sujan12

device - lenovo k3 note
vesrion - 6.0

my app ionic info output is below
Your system information:

Cordova CLI: 7.0.1
Ionic Framework Version: 2.0.0-rc.5
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 2.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v7.2.1
Xcode version: Not installed

Your choice but you can share your repo with me and I’ll take a quick look

Your CLI is so old it doesn’t contain important information. Run ionic platform list to get this information please. (Or upgrade your CLI and run ionic info again)

ionic platform list
{}

Installed platforms:
android 6.1.2
browser 4.1.0
ios 4.3.1
Available platforms:
blackberry10 ~3.8.0 (deprecated)
webos ~3.7.0
windows ~5.0.0

after upgrade cli my ionic info is
cli packages: (D:\IONIC\reetzy\node_modules)

@ionic/cli-plugin-cordova       : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils                : 1.7.0
ionic (Ionic CLI)               : 3.7.0

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.1.2 browser 4.1.0 ios 4.3.1
Ionic Framework    : ionic-angular 2.0.0-rc.5

System:

Android SDK Tools : 25.2.5
Node              : v7.2.1
OS                : Windows 7
npm               : 3.10.10

but when use ionic build android --prod it’s through error
TypeError: Cannot read property ‘codeGen’ of undefined

As this is an old error, you might want to search the forum for older solutions or workarounds

This might be better if it is upgraded as well, 6.2.3 or even 6.3.0.

@Sujan12 if i update android platform to 6.3.0 then below error occur

Error: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio

Pretty clear error message.

Make ionic cordova requirements happy basically.

Install Android Studio to fix this issue. Or install Gradle manually and ad the Gradle path to your environment variables.

@Sujan12 i have already include gradle and install Android Studio if i am downgrade my android platform to 6.3 to 6.1 then these error goes and work

Yes of course, because your local installation is correct for 6.1. - but not for 6.3.

With cordova-android 6.3 ionic cordova requirements doesn’t output any errors for you?

you were able to solve this problem … I’m having the same problem as you

I ran your line of code and I throw myself the following

Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-28,android-27,android-26,android-23,android-22
Gradle: installed /usr/local/Cellar/gradle/4.8.1/bin/gradle

But the app does not work for me in Android 5.0 … I have no idea that it could be