snakesilk / react-fullscreen

Fullscreen helper component for React.
https://www.npmjs.com/package/react-full-screen
MIT License
280 stars 33 forks source link

Not working on iOS Safari or iOS Chrome #64

Closed svargas-dev closed 3 years ago

svargas-dev commented 3 years ago

Works fine on desktop Chrome / Firefox but not on iOS Safari or iOS Chrome

svargas-dev commented 3 years ago

Scrap that. I see the fullscreen API isn't supported by iPhones. Would be useful to have link to https://caniuse.com/fullscreen in the readme though

skoal2007 commented 3 years ago

Hi Svargas, any work around for this issue. I also notice this package not working on iphone iOS.

asierba-air-up commented 1 year ago

hi, any update or work around for this?

kr-viku commented 1 year ago

Not working on ios mobile devices. Getting this error: element[vendor[key.requestFullscreen]] is not a function. (In 'element[vendor[key.requestFullscreen]]()', 'element[vendor[key.requestFullscreen]]' is undefined)

adon988 commented 1 year ago

Issue still on:

TypeError: element[vendor[key.requestFullscreen]] is not a function. (In 'element[vendor[key.requestFullscreen]]()', 'element[vendor[key.requestFullscreen]]' is undefined)
felipedeboni commented 7 months ago

iOS only supports it on iPad, however I think this hook could detect that and portal the content and add a class to it so it will at least mimic the behavior of a fullscreen instead of throwing errors.

Sadly I don't have time right now to make a PR, will implement in a scrappy way.