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
Add a comment  | 

2 Answers 2

Reset to default 0

try 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