Bug 259328

Summary: Web Apps (PWA) on iOS/iPadOS does not respect dark/light mode media selector for startup image
Product: WebKit Reporter: stephen
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: the.bull, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: All   
OS: iOS 16   
See Also: https://bugs.webkit.org/show_bug.cgi?id=262212
https://bugs.webkit.org/show_bug.cgi?id=266853

Description stephen 2023-07-18 18:15:45 PDT
When installing the PWA, iOS uses the correct initial splash screen. Later if the light/dark mode changes, the PWA shows the splash for rhe mode that was used when the app was installed, not the current mode.

Repro:
1. open twitter.com and install when using light mode
2. open the PWA and see the correct splash (light)
3. change to dark mode
4. close and reopen app, and see that it still shows light mode startup image even though it should show dark mode
5. repeat above steps, but starting in dark mode to see that that case is also wrong
Comment 1 Radar WebKit Bug Importer 2023-07-25 18:16:16 PDT
<rdar://problem/112872756>