You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Android app stays on "You are offline" after reopening (expo-network misses the background network unblock) #28624
The app reconnects once the network is available again.
Actual behavior
It stays on "You are offline" with no connection attempts. The environment page says "T3 Code reconnects on its own", but it doesn't. Toggling the environment off and on doesn't help.
Cause: Android blocks a backgrounded app's network and lifts the block shortly after it returns to the foreground. If the app reads its network state before the block lifts, expo-network reports offline. It never hears the lift, because it doesn't implement NetworkCallback.onBlockedStatusChanged (Expo issue: expo/expo#52725). The connection supervisor waits for an online report, so it never retries. Re-reading on resume (#4528, #5597) doesn't help either: a read while the block is still on also returns no network. #24932 doesn't cover this, since the home screen has no Retry action.
Fix: add onBlockedStatusChanged to the existing patches/expo-network@58.0.3.patch; a PR follows.
Activity