Not able to connect to backend over https from ionic android app

Unable to connect to backend over “https” on android app created through ionic CLI.

It works perfectly fine on browser, on debug mode on android phone. Just doesn’t work in release mode. It even works over ‘http’ but not on ‘https’.

And my SSL certificate is not self-signed. It is properly bought certificate and all SSL checkers say it is fine.

Tried all the solutions I could find on internet.

  1. Installed whitelist-plugin.
  2. Re-installed whitelist-plugin.
  3. Added Content-security-policy with “*” for default-src.
  4. Added <allow-intent href="*" /> <allow-navigation href="*" />

Nothing seems working. Please help.