You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/09/29 21:03:59 UTC

[GitHub] [cordova-plugin-device-orientation] StarStep commented on issue #51: Horizontal compass heading not working

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org