2

I created an apiRest Full with node that works well in my project ionic, I access very well the browser and even some less android phone version 9 but higher than 9, I have the error :

"Http failure response for (api address): 0 Unknown Error "

Can some give me some solution track? Thank you for your answers ionic 5.2

  • Just make sure you have `https` support.Because in higher version of andriod it requires secure connection. – Sachin Shah Oct 30 '19 at 07:34
  • check this. It may heps you : https://stackoverflow.com/questions/51902629/how-to-allow-all-network-connection-types-http-and-https-in-android-9-pie – Sachin Shah Oct 30 '19 at 07:37
  • Thank you for your proposals after a search momonent, I finally find a solution It was necessary to modify the file: 'network_security_config.xml' that was in the directory resources / android / xml change localhost with with the server ip Thank you – Thierry Nzapi Nov 01 '19 at 05:30
  • So the above ref URL helped you? Because in that URL, Developer had also changed `network` file. – Sachin Shah Nov 01 '19 at 06:06
  • Yes it guided me to the right problem solving thank you very much – Thierry Nzapi Nov 01 '19 at 06:34
  • Okay so I'm adding this same in answer. So it may helps others too. :) – Sachin Shah Nov 01 '19 at 07:37

1 Answers1

1

Just make sure you have https support. Because in a higher version of Andriod it requires a secure connection.

Check this link it may help you. :)

Sachin Shah
  • 4,503
  • 3
  • 23
  • 50