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

Show fullscreen button on Safari desktop PWA #530

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

edde746
Copy link
Contributor

@edde746 edde746 commented Dec 6, 2023

With Safari adding PWA support on desktop, window.navigator.standalone is no longer only true on iOS.

@kKaskak
Copy link
Member

kKaskak commented Dec 6, 2023

Screenshot 2023-12-07 at 0 52 14 I personally don't think this change is needed at all, as we already have a full screen button in the native app action buttons, while running PWA on macOS. Leaving the review to @tymmesyde

@edde746
Copy link
Contributor Author

edde746 commented Dec 6, 2023

The fullscreen button is completely unnecessary in Stremio web, but this makes the Safari PWA experience consistent with other browsers.

@unclekingpin unclekingpin self-requested a review December 8, 2023 15:55
Copy link
Contributor

@unclekingpin unclekingpin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check for isMobile to hide the fullscreen button

@edde746
Copy link
Contributor Author

edde746 commented Dec 8, 2023

On Chrome on Android, you can enter fullscreen mode and on iOS it would be hidden since document.fullscreenEnabled is not true. It actually seems that Chrome on Android is one of the only places where the button is useful since there is no F11 key or other way to enter fullscreen mode.

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

Successfully merging this pull request may close these issues.

3 participants