Some users in our production app are not able to access our API through our app.
I see a number of logs in Crashlytics of Network request failed, so I assume that must be the case.
Our API uses DNS (not raw IP) and HTTPS. It works correctly for most users (and for me, as the developer, as well as all phones I tested).
They can access our website in their Android phone through the browser, so it probably isn’t due to no internet available.
We use the pure fetch function to access our API (and not some custom library for that). React-Native probably wraps it, but I don’t see many people reporting issues about it, at least not as in our case.
Most questions I see here are about plain HTTP requests, local development, emulator, or a generalized error for all users, which is not our case (it’s happening only for a few users, the request is HTTPS through Cloudflare, and it’s a production app using managed Expo).
It’s using a (relatively) recent react-native 0.72.6
, react 18.2.0
and expo 49.0.16
.
Anyone have an idea about what might be the cause of this issue, and how to solve it?