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

DeviceOrientation is DEPRECATED - Removed in Google chrome M76 #62

Open
amohoric opened this issue May 22, 2019 · 1 comment
Open

DeviceOrientation is DEPRECATED - Removed in Google chrome M76 #62

amohoric opened this issue May 22, 2019 · 1 comment

Comments

@amohoric
Copy link

Greetings!

Will there be any update for the new device motion and orientation events? They will be deprecated soon. It would be a pity if the library would be rendered useless?

Kind regards,
Ales
Slovenia (Europe)

[Deprecation] The devicemotion event is deprecated on insecure origins and will be removed in M76, around July 2019. Event handlers can still be registered but are no longer invoked since M74, around April 2019. See https://www.chromestatus.com/feature/5688035094036480 for more details.

@roboholix
Copy link

It looks like the deprecation warning only applies to insecure origins (anything with an "http" instead of an "https").

Only existing code on sites being visited with an "http" protocol would break. To resolve you would need to setup a proper implementation of "https" for your domain and redirect any potential "http" requests to the new "https" version of the site.

If users are already visiting or are redirected to an "https" only version of your domain, you would not need to take any action and existing code should still work.

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

No branches or pull requests

2 participants