You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2016/04/23 00:10:12 UTC

[jira] [Resolved] (CB-7822) Too many / wrong permissions for Device Orientation plugin

     [ https://issues.apache.org/jira/browse/CB-7822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse MacFadyen resolved CB-7822.
---------------------------------
    Resolution: Not A Problem

tl;dr The reason for requiring location is to determine declination. Which is used for accuracy.

The compass uses magnetic north to get it's heading, but magnetic north is not the same as true north. So if you know where you are in the world, math can be used to calculate true north from your magnetic north reading.


> Too many / wrong permissions for Device Orientation plugin
> ----------------------------------------------------------
>
>                 Key: CB-7822
>                 URL: https://issues.apache.org/jira/browse/CB-7822
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Device Orientation
>            Reporter: Adam Tuttle
>            Priority: Minor
>
> It seems intuitively incorrect that the Device Orientation plugin needs to request the permissions ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION, yet they are required: https://github.com/apache/cordova-plugin-device-orientation/blob/master/plugin.xml
> I did a little bit of research and haven't found anything conclusive one way or the other. I just know that I need this information to make my app look good, but now my users could think that I'm watching their GPS for no reason.
> This was the best information I was able to find on getting orientation, but I don't see any discussion on the necessary permissions. http://stackoverflow.com/questions/2795833/check-orientation-on-android-phone
> I wish I had a better idea of whether or not this is a bug or a "feature" of the way android permissions are provisioned, but this is the best I can do at the moment. Can someone please look into this?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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