The iOS app cannot open offline: 'Cannot reach ipodderx.sdf1.net', then a black screen #506

Open
opened 2026-11-29 10:26:23 -08:00 by rays · 1 comment
Owner

Reported 2026-11-29 from the phone in airplane mode: the app opens to the alert 'Cannot reach ipodderx.sdf1.net / Could not connect to the server', and Try Again leaves a black screen. #435 was meant to let it open offline through the page's service worker.

The access log shows the app does run the worker (/sw.js, /api/push/devices from the same address), and its launches load / (200 or 304). But the worker keeps the page only when a navigation passes through it, and the app's own load (WKWebView.load from Swift) may not; if it does not, the worker never kept the page and has nothing to answer with, and WebKit fails the load.

Fix: the page asks the worker to keep / on every load, whatever loaded it; and the app, when its load fails for want of a connection, tries once more from the web view's own cache before saying the server cannot be reached.

Reported 2026-11-29 from the phone in airplane mode: the app opens to the alert 'Cannot reach ipodderx.sdf1.net / Could not connect to the server', and Try Again leaves a black screen. #435 was meant to let it open offline through the page's service worker. The access log shows the app does run the worker (/sw.js, /api/push/devices from the same address), and its launches load / (200 or 304). But the worker keeps the page only when a navigation passes through it, and the app's own load (WKWebView.load from Swift) may not; if it does not, the worker never kept the page and has nothing to answer with, and WebKit fails the load. Fix: the page asks the worker to keep / on every load, whatever loaded it; and the app, when its load fails for want of a connection, tries once more from the web view's own cache before saying the server cannot be reached.
rays added the bug label 2026-11-29 10:26:23 -08:00
Author
Owner

0bb7437: the page half is deployed (ipx-web, 2026-11-29 18:35 UTC); the app's cache retry needs a new build from Xcode. Left open until the phone opens offline.

0bb7437: the page half is deployed (ipx-web, 2026-11-29 18:35 UTC); the app's cache retry needs a new build from Xcode. Left open until the phone opens offline.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#506