Closed frederikchrlarsen closed 2 months ago
@frederikchrlarsen thank you for the report - this seems related/identical to https://github.com/getsentry/sentry-react-native/issues/3820 - can you verify if the issue persists with 5.22.3 or newer?
@kahest Thank you for the quick response! I can confirm that it is fixed on version 5.22.3. Sorry for bringing up an old and solved issue.
@frederikchrlarsen thanks for confirming! 🙏
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: Expo SDK 51 installs @sentry/react-native ~5.22.0
react-native
version: 0.74.2Are you using Expo?
Are you using sentry.io or on-premise?
Configuration:
What
App
is does not make any differenceI have the following issue:
Our React Native app occasionally gets stuck on the splash screen when starting without an internet connection (e.g., in flight mode or with network access removed via iOS settings). The issue is significantly more frequent on newer iOS devices:
The issue does not occur when we remove or disable Sentry initialization (Sentry.init and Sentry.wrap):
Findings: When offline, the app seems to be stuck while Sentry attempts to send network requests. Below are some relevant logs device logs:
Steps to reproduce:
Actual result:
The app some times get stuck on the splash screen when started in offline mode.
Expected result: The app should not get stuck on the splash screen when there is no internet connection. The Sentry SDK should handle offline scenarios gracefully.
Hypothesis: We suspect the issue is related to how the Sentry SDK handles offline scenarios: