You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "caleb87 (via GitHub)" <gi...@apache.org> on 2024/09/10 17:07:54 UTC
[I] compass heading is off by 40 degrees [cordova-plugin-device-orientation]
caleb87 opened a new issue, #85:
URL: https://github.com/apache/cordova-plugin-device-orientation/issues/85
## Problem
On a Samsung Galaxy S23 Ultra, the compass is about 40 degrees off. The compass shows 320 degrees when pointing north. It's off 40 degrees while pointing any directions. The Google Maps app shows the compass pointing in the correct direction, so I assume the phone operating system has the accurate compass?
### What is expected to happen?
Compass heading is accurate.
### What does actually happen?
Compass heading is not accurate.
## Information
<!-- Include all relevant information that might help understand and reproduce the problem -->
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
```
navigator.compass.watchHeading(function(a) {
// returns {magneticHeading: 323.75201416015625, trueHeading: 323.75201416015625, headingAccuracy: 0, timestamp: 1725987545312} while pointing north (0/360)
}
```
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
Cordova CLI 12.0.0
Android 13.0
Plugin 3.0.0
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
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.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] compass heading is off by 40 degrees [cordova-plugin-device-orientation]
Posted by "chinNuttawot (via GitHub)" <gi...@apache.org>.
chinNuttawot commented on issue #85:
URL: https://github.com/apache/cordova-plugin-device-orientation/issues/85#issuecomment-2814584017
Do you know that when I run cordova plugin add cordova-plugin-device-orientation, I get this issue:
Cannot find plugin.xml for plugin "cordova-plugin-device-orientation". Please try adding it again.
How do I fix this?
--
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.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
Re: [I] compass heading is off by 40 degrees [cordova-plugin-device-orientation]
Posted by "trayvon2017 (via GitHub)" <gi...@apache.org>.
trayvon2017 commented on issue #85:
URL: https://github.com/apache/cordova-plugin-device-orientation/issues/85#issuecomment-2653007483
Maybe you need location permissions
--
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.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org