Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPhone Install Dark Mode shows white header #25

Open
DK-S opened this issue Apr 23, 2024 · 3 comments
Open

iPhone Install Dark Mode shows white header #25

DK-S opened this issue Apr 23, 2024 · 3 comments

Comments

@DK-S
Copy link

DK-S commented Apr 23, 2024

When installed on home page for IOS the page appears fine when not in dark mode but is white when in dark mode. This appears to be opposite of the desired behavior. Should not have to turn off dark mode so that the app works like it is in dark mode.

@artyom-beilis
Copy link
Owner

I assume it is because the app is designed to work in dark mode. So if iOS inverts colors what can I do...

Show please screenshot

@DK-S
Copy link
Author

DK-S commented Apr 23, 2024 via email

@stepjanssen
Copy link

I also noticed this when testing AstroHopper as a PWA on iOS. Did some research and it seems like it can be fixed with a Meta tag:

https://medium.com/appscope/changing-the-ios-status-bar-of-your-progressive-web-app-9fc8fbe8e6ab

The most straightforward fix should be adding:

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

I tried to test this by debugging through Safari, but apparently this only takes effect when reinstalling a web app and that causes my local changes to disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants