Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native android app not working in release

I made an app using react native. The app connects to the api that I made. I followed these steps : https://facebook.github.io/react-native/docs/signed-apk-android, and now the app doesn't work if i do react-native run-android --variant=release.The app installs, but I can't login in the app. Is there any way to see if I get any errors or something?

I tried searching for a way to show the debbuging console even if the variant is release, but i can't find any

I want the app the work as the one that is not in release variant.

like image 934
Darius Biro Avatar asked Jul 31 '19 11:07

Darius Biro


1 Answers

maybe you need to add android:usesCleartextTraffic="true" inside the application tag in the AndroidManifest.xml .

Something like this:

<application
  ...
  android:usesCleartextTraffic="true"
  ...
>
   ...
</application>
like image 113
SmoggeR_js Avatar answered Sep 24 '22 21:09

SmoggeR_js