Closed stuartpb closed 5 years ago
I think this would be great. If we can start creating a collection of resources I might be able to look into this in a few weeks. I have been creating a website which would use this. Currently I am forging ahead to make it work for android only but when I get a bit more time would keenly contribute to working on this.
@stuartpb Do you have a link to the "remy's" interface. I have found the first three librarys but not the last one
Remy's doesn't really matter, it's just a library that generates an on-screen UI for faking device events if the UA doesn't support them.
In any case, http://lmgtfy.com/?q=remy+devicemotion&l=1 => https://github.com/remy/polyfills/blob/master/device-motion-polyfill.js
@substack do you think you might be able to implement this, tapping into your deep, knowledgeable understanding of balls?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.
There's nothing out there that actually polyfills (and fixes values for) the DeviceMotion API. There are a few libraries that implement their own API (gyronorm, gyro.js, FullTilt) or emulate the interface (remy's), but nothing that takes an existing API for device motion and translates it into the standard API. Moreover, there's nothing out there that translates from the Cordova
navigator.accelerometer
ornavigator.compass
APIs.