Expo built app does not complete random fetch requests from server

Expo CLI 3.13.1 environment info:
OS: macOS Sierra 10.12.6
Shell: 3.2.57 - /bin/bash
Node: 12.13.0 - /usr/local/bin/node
npm: 6.14.7 - /usr/local/bin/npm
expo: ^39.0.0 => 39.0.5
react: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz => 0.63.2
expo-cli: 3.13.1

My react native app which is on the app store and android playstore requires to load some data on start. With android it works well but in iOS Phone the fetches work randomly. At times all data is fetched, at times part of it- the response just comes back as ‘Network connection was lost’ . The api used is served as an http request but since it fetches responses at times I don’t think this is ssl issue. Can somebody guide if there is any setting in the expo build for ios which is creating issue like this ?

Many thanks for any help !

Hey @lifesimplified.dev, there isn’t anything you need to toggle for a built standalone app. Have you been able to reproduce this locally?


Yes Adam, I see the same while testing with my iOS device locally - and with Android tests it works fine. I wondered if it could be that two dispatches are creating race conditions and it drops one… so I am testing the code with sending one dispatch after a timeout. So far that looks good in local testing. But this solution seems like a hack especially as everywhere else I don’t seem to have a problem with sagas returning back with “network connection was lost”. Its only been in ios so far :frowning:

Thanks !

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.