ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.29k stars 1.01k forks source link

[Bug]: Missing documentation for plugin @capacitor/motion #7743

Closed frederikheld closed 2 weeks ago

frederikheld commented 3 weeks ago

Capacitor Version

See https://capacitorjs.com/docs/apis/motion in the version of 2024-10-30

Other API Details

No response

Platforms Affected

Current Behavior

The devicemotion event is not available on Android in insecure contexts. See this statement from the Chromium team: https://www.chromium.org/Home/chromium-security/deprecating-powerful-features-on-insecure-origins/ This seems to affect the WebView as well.

Therefore this plugin will not work if live-reloading is enabled! This took me some hours to figure out!

Also I would appreciate if you could add some lines about the advantages of this plugin compared to the devicemotion event listener. See my question #7742

Expected Behavior

I don't have to debug for hours

Project Reproduction

//

Additional Information

No response

jcesarmobile commented 2 weeks ago

You can report Capacitor plugins issues at https://github.com/ionic-team/capacitor-plugins/issues