React Native application crashes when opening from the background after unlocking the phone (network request failed.)

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!

+7
ios react-native
source share

No one has answered this question yet.

See related questions:

7
The React Native App will work if it is signed and released. Works great in debug mode
6
React Native App Debug mode works fine, Release mode fails (App Registry and rating "a.View.propTypes.style")
5
iOS React Native App Crash archive only
4
iOS - first network request ends after unlock
2
respond to native iOS video adapter does not play a second time after locking device lock
2
React Native App Instant Recovery on iOS TestFlight
2
Debugging Reacts Native Applications in the Background
one
respond to crashes in the native application only in production (when testing on the phone)
0
The initiative-based kernel application receives dynamic firebase links when launched in the debugging scheme, but not when launched in the release scheme
0
Respond to auto-reclosure damage after starting in release mode

All Articles