-
Notifications
You must be signed in to change notification settings - Fork 164
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
Add support for fullscreen display mode #212
Add support for fullscreen display mode #212
Conversation
@andreban What should we do if the display mode is |
2945dce
to
d4c9020
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pull request!
From a Trusted Web Activity perspective, only standalone
and fullscreen
would make sense. minimal-ui
would be similar to launching a Custom Tab and browser
just launching a browser Intent. This is specially true for Bubblewrap, as users download an app from an app store don't expect it to open the browser.
When reading the Web Manifest, we'd default browser
, minimal-ui
and standalone
to standalone
and fullscreen
to fullscreen
.
We could use a fullscreen: boolean
flag, but having a DisplayMode
that only accepts standalone
and fullscreen
looks more future-proof.
d7b56f1
to
5a64a69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's export a typed Array for DisplayModes so we get nice type checking if we need to use items from the Array later.
9f4aee9
to
f669228
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you!
Closes #175