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
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 #7742Expected Behavior
I don't have to debug for hours
Project Reproduction
//
Additional Information
No response