Vitor Albres
Vitor Albres

Reputation: 123

React Native release version built successfully but does not work like debug

I build the release version to publish, but it don't comunicate with my api, however, the debug version works fine.

Is there a way to debug an release version to find what is happening? I tried to open dev tools but it doest work.

Any ideas what I can do?

Upvotes: 1

Views: 1648

Answers (2)

Mudit Gulgulia
Mudit Gulgulia

Reputation: 1266

Yes you can debug your release apk in android studio and can se the logcat there you can find out what error you are into.

Upvotes: 0

ucup
ucup

Reputation: 685

maybe its because you are not using a secure api. try adding this in AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" /> <!-- < add this line > -->

<application
...
 android:usesCleartextTraffic="true" <!-- < add this line > -->
/>
...
</application>

Upvotes: 3

Related Questions