question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IOS release stuck on splash screen if no internet connection

See original GitHub issue

Summary

App stuck on splash screen if I turn on airplane mode and start the app. And it won’t start even if I close the app and open it again. It starts only if I kill the app from the tray and then start again.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

iOS

SDK Version (managed workflow only)

40.0.0

Environment

Expo CLI 4.4.3 environment info: System: OS: macOS 11.2.2 Shell: 5.8 - /bin/zsh Binaries: Node: 12.13.1 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 6.12.1 - /usr/local/bin/npm Watchman: 4.9.0 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.10.1 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4 IDEs: Android Studio: 4.1 AI-201.8743.12.41.7199119 Xcode: 12.5/12E262 - /usr/bin/xcodebuild npmPackages: expo: ^40.0.0 => 40.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 npmGlobalPackages: expo-cli: 4.4.3 Expo Workflow: managed

Reproducible demo or steps to reproduce from a blank project

Can’t share a reproducible demo as it can be reproduced only in the release build installed from TestFlight.

Here is what I can share. I’ve created an app. It uses NetInfo module it is listening for network changes in App.tsx file. I show the modal that overlays the whole app when there is no internet connection and hide it when NetInfo notifies me that there is a connection.

Next, when I turn on airplane mode and start the app I can see my popup over the Splash screen, and when I turn off the airplaine-mode the modal is gone, but the splash screen is still present and I never see the Home Screen. To make the app work again I have to close the app and remove it from the tray.

I’ve read that there might be a problem with OTA Updates, so I’ve tried to set ‘updates.fallbackToCacheTimeout’ to 0 or 1. Even tried ‘updates.enabled’ false. That didn’t help.

I’ve checked a device logs and the last warning I see, after enabling the network is ‘nehelper sent invalid result code [1] for Wi-Fi information request’

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zholmes1commented, May 26, 2021

Are you using AppLoading or SplashScreen?

If you are using AppLoading either your startAsync callback is hanging, or your onFinish or onError don’t set the proper condition to bypass your AppLoading. For instance, let’s say you have a const [ready, setReady] = useState(false), and then if (!ready) return <AppLoading.... Both your onFinish and onError will need to result in setReady(true).

If you are using SplashScreen, then it’s a little more freeform. But you need to ensure that hideAsync() is called at some point.

0reactions
github-actions[bot]commented, Feb 3, 2022

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React native app stuck on splash screen on device but works ...
I was having the same issue. What I did was in Xcode go to Products -> Scheme -> Edit Scheme -> Select the...
Read more >
Fix app stuck on the splash screen on iOS - MacVangelist
Step 1 – Disable your Internet connection, wait 10 seconds and then go back online. · Step 2 – Force close the app...
Read more >
Wifi Spash Screens wont load - Apple Community
Whenever I connect to a free wifi when out in public that has a splash screen, the splash screen will fail to load...
Read more >
iPad running iOS 12 -- Stuck on Splash Screen #22765 - GitHub
If it gets stuck on the splash screen, I run the following commands: ... go past the launch (splash) screen on iOS 12.4...
Read more >
App stuck on splash screen when no Internet connection upon ...
Hey, When starting app on simulator and device via "ionic run ios" and turning off Internet before app start, the application hangs on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found