Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29534

https connection in Android react-native not working on physical device after build

$
0
0

I created a simple app with react-native, using expo & Axios (for server requests)

Before build, while developing, all https requests worked fine.

After build, when running the apk on a physical device, https is not working at all.

The error I get with Logcat is "Network Error".Other Internet connections (after build) in the app do work, like webview opening a web page or Firebase connections also.

    analyzerApi.post('/analyze', urls) .then((res) => { dispatch({type: 'get_result', payload: res.data.analysis})}).catch(err => console.log("Error in getting analyze.. " ,err.name, err.message))

(analyzerApi is an axios instance with baseUrl directed to my server)


Viewing all articles
Browse latest Browse all 29534

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>