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

Can't open example on detecting device orientation page #38423

Open
ThePeregrinus opened this issue Feb 26, 2025 · 3 comments
Open

Can't open example on detecting device orientation page #38423

ThePeregrinus opened this issue Feb 26, 2025 · 3 comments
Labels
area: Device Orientation Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@ThePeregrinus
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Device_orientation_events/Detecting_device_orientation

What specific section or headline is this issue about?

Can't open example on android phone

What information was incorrect, unhelpful, or incomplete?

From the mobile browser Google Chrome I can't access the example. After clicking on the “continue” button nothing happens. The example works in the Firefox browser

Image

Image

What did you expect to see?

Orientation example

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@ThePeregrinus ThePeregrinus added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Feb 26, 2025
@bsmth bsmth transferred this issue from mdn/content Feb 26, 2025
@ThePeregrinus
Copy link
Author

Somehow other chrome orientation examples don't work as well. Maybe Chrome bug

This example works on firefox but not on chrome
https://sensorbox.glitch.me/

@ThePeregrinus
Copy link
Author

The problem is solved. I enable motion sensor in chrome settings and example starts working on android chrome.

Image

However, there are still a few problems:

  1. It should be mentioned that due to motion sensor disabled in the settings, there may be problems
  2. requestPermission() static method is not added to example therefore the example will not run on Safari

@argl argl removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Mar 3, 2025
@argl argl transferred this issue from mdn/yari Mar 3, 2025
@github-actions github-actions bot added Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Mar 3, 2025
@argl
Copy link
Contributor

argl commented Mar 3, 2025

Transferred back to content as the page in question only lacks some explanation on how to get the examples running correctly on mobile devices, not a technical issue.

@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! area: Device Orientation and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Device Orientation Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

3 participants