Ionic4 can not make https call to REST api on android device

I have an ionic5 application that makes calls to REST api hosted on my server. When testing the application with browser everything works fine. But after deploying to real android device the api call returns status (canceled) with initiator polyfills-es5.js and seems that the call doesn’t even start. Initially I had an ERR_CLEARTEXT_NOT_PERMITTED error but after adding a ssl certificate to the server (zerossl) this error disappeared but instead the https calls return the canceled status.

Is it a certificate problem (zerossl is trusted by browsers but is it by Android) ? Or something else?

Facing the same issue . Exactly same scenario, initially faced the issue because of http rest api in android device, then i made the rest api as https by installing certificate. But the issue not resolved.
The same build works in android 8.1 , but not working in android 9 devices.

try to use axios.get(“https: your api”)

post axios implementation getting below error

Error: Request aborted
at LYNF.e.exports (3-es2015.2524b828ffd8f391a53c.js:1)
at XMLHttpRequest.l.onabort [as __zone_symbol__ON_PROPERTYabort] (3-es2015.2524b828ffd8f391a53c.js:1)
at XMLHttpRequest.w (polyfills-es2015.4e7669dac6dca996a227.js:1)
at a.invokeTask (polyfills-es2015.4e7669dac6dca996a227.js:1)
at Object.onInvokeTask (main-es2015.29c5dfaf8397801fddba.js:1)
at a.invokeTask (polyfills-es2015.4e7669dac6dca996a227.js:1)
at s.runTask (polyfills-es2015.4e7669dac6dca996a227.js:1)
at c.invokeTask [as invoke] (polyfills-es2015.4e7669dac6dca996a227.js:1)
at u (polyfills-es2015.4e7669dac6dca996a227.js:1)
at XMLHttpRequest.p (polyfills-es2015.4e7669dac6dca996a227.js:1)

Finally I made it worked. I have used port number in my REST api url which causes the request to get cancelled in device.

I’m having the same problem… Please give me example