title: Can't fetch data from local IP in release build
body: <p>My app scan local network using fetch() to localize device.</p>
  
  <p>All works very well in debug (emulator or physical device with usb debugging), but after building release, my all requests fails. I don't even know how to debug it.</p>
  
  <p>If I hard-code IP and send any request to my device (<a href="http://192.168.0.XX/api" rel="nofollow noreferrer">http://192.168.0.XX/api</a>) - it also fails</p>
  
  <p>Tried adding permissions to manifest, but didnt help.</p>
  
  <pre><code>    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" /&gt;
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>//edit: code <a href="https://pastebin.com/eFgVsi3Z" rel="nofollow noreferrer">https://pastebin.com/eFgVsi3Z</a></p>
  
  <p>//edit2: Alert.alert + JSON.stringify() in catch gave me this:</p>
  
  <p><code>{"line": 138,"column":2655,"sourceURL":"index.android.bundle"}</code></p>
  
  <p>//edit3: solution: add <code>android:usesCleartextTraffic="true"</code> to <code>&lt;application&gt;</code> in AndroidManifest.json to be able to "talk" with local devices in release builds</p>