We have a problem with the React Native application that we are creating. The application behaves perfectly until the following happens:
- the user locks the screen (while the application is open or in the background, it does not matter)
- user opens iPhone and opens application from background state
- as soon as the application makes an API request, it crashes
Some notes:
- We create an application on the device itself (both miniature and non-minimized bundles create the same error).
- If the user does not lock the screen (only puts the application in the background) and then opens the application later, it works fine.
- Failure occurs in both Debug and Release schemas.
We checked the crashes in both Xcode and the Chrome React Debugger, and the following error occurred (not so useful). ( Note: This uses a debugging scheme).
{ [TypeError: Network request failed] line: 5074, column: 21, sourceURL: 'http://192.168.0.30:8081/index.ios.bundle?platform=ios&dev=true' }
The same error occurs when building using the release scheme.
Does anyone know what could be a potential problem here? Thanks in advance!
ios react-native
ztodorovic
source share