React Native fetch 'api' issue Over 'wifi'

Viewed 154

I'm using fetch to make api calls , but I have some weird scenario . just turn on the hotspot from a secondary device , then connect primary device to it. then once the app launch successfully make an api call. then change the network connection in 2ndry device (from 2g -> 4g or 4g -> 2g , any )

if I change the network , then fetch is not responding. sometimes taking more than 5mnts to return the error message .

I have tried RnfetchBlob also , it is working fine , but in iOS sometimes returning unable to connect even if there is an active internet connection .

Do anyone have any idea on the same , please help me to solve the issue.

0 Answers
Related