admin管理员组文章数量:1122832
i am a react js developer trying to make and deploy an react native app, using expo cli, i am pretty much done but expo eas cli android apk is showing network error , it is working in web version but it is not working with android apk, is there some fact that https requests are not allowed in native expo cli android apks?
I tried to update my packages, checking navigations and later realised https isnt allowed, i am using expo so custom prebuilds dont make sense
i am a react js developer trying to make and deploy an react native app, using expo cli, i am pretty much done but expo eas cli android apk is showing network error , it is working in web version but it is not working with android apk, is there some fact that https requests are not allowed in native expo cli android apks?
I tried to update my packages, checking navigations and later realised https isnt allowed, i am using expo so custom prebuilds dont make sense
Share Improve this question edited Nov 22, 2024 at 18:04 Pratik Prakash Bindage 1 asked Nov 22, 2024 at 4:03 Aman NarangAman Narang 11 silver badge 1- Could you provide the error log? Without it, we are unable to provide you a solution. – Pratik Prakash Bindage Commented Nov 22, 2024 at 4:52
2 Answers
Reset to default 0try adding this to the androidManifest.xml
debug & main
android:usesCleartextTraffic="true"
eg.
<application
android:usesCleartextTraffic="true"
tools:targetApi="28"
....
If you're connecting to a remote host then please make sure your API is SSL certificates are correctly verified.
本文标签: React native android expo https requests showing network errorStack Overflow
版权声明:本文标题:React native android expo https requests showing network error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736305691a1932681.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论