HTTPS Api call issue in Android 10 version

Hi,

I am building an Android app using latest Cordova, that runs on Android 15. The app uses HTTPS AJAX call to get data from API call. The API call is working in Android 15, but not working in Android 10,11 versions.

The HTTPS call works in TEST server, but returns ‘undefined’ error while connecting to production server.

By doing some research, I have updated the config.xml with ‘allow-navigation’ access to all, ‘allow-intent’ to all and ‘android:usesCleartextTraffic=“true”’. Still not working.

Can someone please help.

Maybe a CORS configuration on your prod server? Have you looked at DevTools for the app running through Android Studio for any errors? Go to chrome://inspect/#devices in Chrome.

Also possible the Android 10/11 devices are running an older WebView version that don’t support a JS feature. Check DevTools for any JS errors.