StarStep commented on issue #51:
URL: 
https://github.com/apache/cordova-plugin-device-orientation/issues/51#issuecomment-700985572


   I'm working on another project... sorry. I dont know if it was fixed.
   You could try to test it and confirm for yourself better. 
   My test code was something like this:
   
   ```
   function show(text) { document.body.innerHTML = text; }
   
   function updatePosition() {
       navigator.compass.getCurrentHeading(function(heading) {
           show(JSON.stringify(heading, null, 2));
       }, function() {
           show("Heading not available");
       });
   }
   
   setInterval(updatePosition, 1000);
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to