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
ScreenFull not working in iOS Chrome #164
Comments
I think this is a problem with your Webpack config and not this package. It works fine without Webpack: https://github.com/sindresorhus/screenfull.js/blob/38eeb420efaf0011e423fe761be18b0052c900c5/index.html#L158 |
Any Idea how I can resolve this? |
Can you show your example? @adnanrafique |
This is not really a bug, more like a bad feature from Apple.
Why ? |
The demo on the homepage does not work on iPad (iOS 13.3.1) with Chrome 80.0.3987.95. I just tested on my iPad and... nothing: |
@adnanrafique is it working on IOS safari(iphone) for you? |
I'm seeing the same thing. On latest iPadOS, the demo:
|
Is any solution? |
I'm having this issue, any solution yet? |
@Shaker-Hamdi what I've found out are as below
|
@mustafaekim I'm not sure I follow, I'm only looking to trigger fullscreen on an element on the page, and it works in Safari iPad, but not Chrome for some reason. |
@kkgo2018 is that a fix ? where does this go and what does it do please ? |
Same issue here, is not working on iPhone 11 Pro Max browser safari 14 and chrome 86.0.4240.93. |
Same issue here - still isn't working. |
player.webkitEnterFullscreen(); |
@sindresorhus screenfull.js only works in Safari on iPad: It does not work on Chrome or Safari on iPhone and Chrome on iPad. This is because these browsers don't support fullscreen mode. We should add a link to the caniuse page for the Full Screen API in the readme. |
There already is: https://github.com/sindresorhus/screenfull.js#support I personally think it's already pretty clear, but PR welcome if you think it can be made clearer. |
Hey! Looking for clarification about this issue. Does no support mean |
@Richienb Cool! Thanks for the clarification! |
I had the same problem with |
We use a JS packages called `screenfull`. It's used to interact with browser Fullscreen API. The problem as explained in this issue it's that iOS fails to even load it: sindresorhus/screenfull#164 The fix is to try catch before showing full screen button.
Whenever I try to open my application in fullscreen it shows following error in console.
TypeError: undefined is not an object (evaluating 'screenfull__WEBPACK_IMPORTED_MODULE_23__["raw"].fullscreenchange')
Now I know it does not work with safari on iPhone but It should work on Chrome and I am testing it in chrome.
In the following condition,
if (screenfull.enabled) {} => console.log(screenfull) => true //it should return an object
This is the line where it is getting failed.The text was updated successfully, but these errors were encountered: