1

I am unable to send an API request with any library like Axios fetch to a server with released APK in react-native in android pie In debug APK everything is working fine but in released APK not working

I have deployed my server on digital ocean with https protocol and the server is written in flask

my react-native version is 0.59.1 react 16..8.3

android:usesCleartextTraffic="true" in AndroidManifest.xml is also not working

I really need an expert opinion and suggestion that what should I do now it's been one month that I am unable to resolve this

Dharman
  • 26,923
  • 21
  • 73
  • 125

2 Answers2

3

Just change HTTP to HTTPS, Will solve the problem.

Diyako
  • 592
  • 1
  • 6
  • 23
Vipin Vv
  • 91
  • 1
  • 6
0

pass this android:usesCleartextTraffic="true" in application tag in AndroidManifest.xml file it work