jeffreylanters / react-unity-webgl

React Unity WebGL provides a modern solution for embedding Unity WebGL builds in your React Application while providing advanced APIs for two way communication and interaction between Unity and React.
https://react-unity-webgl.dev
Apache License 2.0
1.73k stars 163 forks source link

Full Screen event is not working on I Phone #558

Closed jahansoft closed 3 months ago

jahansoft commented 3 months ago

Please avoid duplicates

Language and Compiler

Vanilla JavaScript

What environment are you using?

Local Development Server

When does your problem occur?

While writing code

What does your problem relate to?

The problem seems React related

React-Unity-WebGL Version

9.4.0

React Version

18.2.0

Unity Version

2022.3.16

What happened?

full screen option is working for all other operating systems, like android, windows, mac book. I already checked for different browsers. all other devices are performing good. on I phone only things full screen option is not working. what would be the solution please guid me

Reproducible test case

` const { unityProvider, requestFullscreen, loadingProgression, isLoaded } = useUnityContext({ "loader-url", "data-url", "frame-work-url", "code-url", });

function handleClickEnterFullscreen() {
    requestFullscreen(true);
}`

Would you be interested in contributing a fix?

jahansoft commented 3 months ago

please fix this bug, or guid me if I am doing wrong

jeffreylanters commented 3 months ago

https://caniuse.com/?search=fullscreen fullscreen is only available on iPad, not on iPhone.