Iionic v4 App not working on Android v11 devices

Hi!

We are having problems migrating our app to Android SDK 30 because of new Google Play requirements. It was running on SDK 29. The problem appears only in devices with Android 11 or higher, not on web browsers.

We have updated cordova-android plugin to version 9.1.0.

We are calling to a Web Service with POST method through Angular HTTPClient. Here is our code:

this.http.post<any>(`${serverURI}${wsURI}`, jsonBody)
        .pipe(timeout(20000), 
          tap(res => {
            if(!this.isDefined(showLoader) || showLoader === true || wsURI=="/template/backend-login/public/login") {
              this.hideLoader();
            }
            if(res['error']) {
              this.logger.error("baseCallWebService --> " + serverURI + wsURI + " #### " + JSON.stringify(jsonBody) + " ==> " + res['message']);
              this.showAlert(this.errorLevel, res['error']);
            }
          })

The same call is working in older Android devices and has been tested with POSTMAN and with all browsers. The response time from backend is always lower than 1 second.

Here is the error:

Thanks a lot.

Hi!

We have tested our App (SDK 30) on multiple devices and we have seen that on Xiaomi devices, for MIUI 12.5 and Android version 11, all HTTP calls fail with a Timeout Error. If we compile the APK for SDK 29 all HTTP calls work perfectly. Does anyone know if there is any problem with Cordova or something?

Thanks a lot.