Bug 266853 - Dark/light mode switching not working while PWA is open
Summary: Dark/light mode switching not working while PWA is open
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-12-23 08:49 PST by Danny Moerkerke
Modified: 2024-09-16 14:48 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danny Moerkerke 2023-12-23 08:49:38 PST
When a web app is added to the Home Screen (PWA) dark/light mode switching doesn't work while the app is open.

To reproduce:

1. install a web app to the home screen of an iPhone and open it in light mode
2. switch iPhone to dark mode
3. dark mode styling is not applied to the PWA
4. close the app
5. reopen the app
6. only now is the dark mode styling applied

When the same web app is opened in Safari it does work correctly
Comment 1 Karl Dubost 2023-12-24 22:07:55 PST
Hi Danny, thanks for the report.
Not sure this is WebKit. It might be Safari Side.
Comment 2 Radar WebKit Bug Importer 2023-12-24 22:08:04 PST
<rdar://problem/120109217>
Comment 3 Danny Moerkerke 2024-01-09 03:32:05 PST
(In reply to Karl Dubost from comment #1)
> Hi Danny, thanks for the report.
> Not sure this is WebKit. It might be Safari Side.

Should I report this to the Safari team? 
Where do I do that?
Comment 4 Karl Dubost 2024-01-09 04:00:34 PST
Does it happen with all of them? 
Or one you have developed? If yes to the second question, a reduced test case would be great. 

I will test on my side too.
Comment 5 Karl Dubost 2024-01-09 04:19:37 PST
It was reproduced on twitter webapp. 
We moved it internally. 
Thanks again.
Comment 6 Danny Moerkerke 2024-09-16 14:48:38 PDT
This is now fixed on iOS 18, thanks.