iOS: the page itself offline (App-Bound Domains, so the service worker runs) #435
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Episodes kept on the phone play with no connection (#425), but the app cannot open the page without one: a WKWebView runs no service worker, so #389's offline page and lists are not there. WKAppBoundDomains in the Info.plist (the server, and Cloudflare Access's and Authentik's hosts for sign-in) with limitsNavigationsToAppBoundDomains turns service workers on; only for a server in that list, since the list is fixed at build time. Check what it costs: navigation to any other domain is refused in the web view.
Done in
b455c1e, TestFlight build 9; app only, no deploy needed. WKAppBoundDomains: ipodderx.sdf1.net, rays-sdf1.cloudflareaccess.com, authentik.sdf1.net (debug builds add localhost). Simulator: opened twice online, server stopped, relaunch showed iPX from the service worker; on the app-bound host the bridge still works (host can sleep,route, native playback). To check on the phone: sign-in through Access and Authentik still completes inside the app; offline launch after a couple of online ones; item links open in Safari; an item with an embedded video.Confirmed on the phone: iPX opens in airplane mode from the service worker. Sign-in through Access and Authentik inside the app-bound web view has not been exercised yet (the Access session lasts 730h); a sign-in that fails there gets an issue of its own.