androidreact-nativerelease

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.


Solution

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

    Something like this:

    <application
      ...
      android:usesCleartextTraffic="true"
      ...
    >
       ...
    </application>