I developed an app with React native and install debug apk in my device and all of the things are ok.
but when install release version in my device, it can't get data from API.
what's wrong?
In my case, I call api with non secure (http instead of https). So api work well for debug environment, but not work for release. You can add this line
android:usesCleartextTraffic="true"
to AndroidManifest.xml
like that
<uses-permission android:name="android.permission.INTERNET" />
<application
...
android:usesCleartextTraffic="true"
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With