{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ng-cordova/issues/743","labels_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/743/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/743/comments","events_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/743/events","html_url":"https://github.com/driftyco/ng-cordova/issues/743","id":67933476,"number":743,"title":"ngCordova Geolocation Times out on Nexus 5","user":{"login":"kunalnagar","id":2741371,"avatar_url":"https://avatars.githubusercontent.com/u/2741371?v=3","gravatar_id":"","url":"https://api.github.com/users/kunalnagar","html_url":"https://github.com/kunalnagar","followers_url":"https://api.github.com/users/kunalnagar/followers","following_url":"https://api.github.com/users/kunalnagar/following{/other_user}","gists_url":"https://api.github.com/users/kunalnagar/gists{/gist_id}","starred_url":"https://api.github.com/users/kunalnagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunalnagar/subscriptions","organizations_url":"https://api.github.com/users/kunalnagar/orgs","repos_url":"https://api.github.com/users/kunalnagar/repos","events_url":"https://api.github.com/users/kunalnagar/events{/privacy}","received_events_url":"https://api.github.com/users/kunalnagar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-12T16:44:28Z","updated_at":"2015-07-20T12:50:07Z","closed_at":null,"body":"I'm testing the ngCordova Geolocation service on a Nexus 5 and it is timing out every time.\r\n\r\nPhone: Nexus 5 with Android Lollipop 5.1\r\nngCordova Version: v0.1.12-alpha\r\nLocation Services: Turned on with Battery Saving Mode\r\nRun Environment: ionic run android -l (using LiveReload)\r\n\r\nHere is the error:\r\n\r\n```\r\nPositionError {\r\n  message: \"Timeout expired\", \r\n  code: 3, \r\n  PERMISSION_DENIED: 1, \r\n  POSITION_UNAVAILABLE: 2, \r\n  TIMEOUT: 3\r\n}\r\n```\r\n\r\nand here is my code (nothing special):\r\n\r\n```\r\n$cordovaGeolocation.getCurrentPosition({\r\n    timeout: 10000,\r\n    enableHighAccuracy: false\r\n}).then(function(position) {\r\n    console.log(position);\r\n}, function(err) {\r\n    console.log(err);\r\n})\r\n```\r\n\r\nAnyone know why this is happening? Same code is working on One Plus One and Samsung devices though."},"comment":{"url":"https://api.github.com/repos/driftyco/ng-cordova/issues/comments/122873377","html_url":"https://github.com/driftyco/ng-cordova/issues/743#issuecomment-122873377","issue_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/743","id":122873377,"user":{"login":"alicona","id":93709,"avatar_url":"https://avatars.githubusercontent.com/u/93709?v=3","gravatar_id":"","url":"https://api.github.com/users/alicona","html_url":"https://github.com/alicona","followers_url":"https://api.github.com/users/alicona/followers","following_url":"https://api.github.com/users/alicona/following{/other_user}","gists_url":"https://api.github.com/users/alicona/gists{/gist_id}","starred_url":"https://api.github.com/users/alicona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicona/subscriptions","organizations_url":"https://api.github.com/users/alicona/orgs","repos_url":"https://api.github.com/users/alicona/repos","events_url":"https://api.github.com/users/alicona/events{/privacy}","received_events_url":"https://api.github.com/users/alicona/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T12:50:07Z","updated_at":"2015-07-20T12:50:07Z","body":"I manually modified the  /plugins/android.json file, the plugin didn't add itself to this file.\r\nI added the  \"xml:\"  and \"count\" lines.\r\n\r\nThe config.xml and AndroidManifest.xml are overwritten by this JSON\r\n\r\nplugin v0.3.12\r\nAndroid 4.4.4 API 19\r\n```\r\n{\r\n    \"prepare_queue\": {\r\n        \"installed\": [],\r\n        \"uninstalled\": []\r\n    },\r\n    \"config_munge\": {\r\n        \"files\": {\r\n            \"res/xml/config.xml\": {\r\n                \"parents\": {\r\n                    \"/*\": [\r\n                        {\r\n                            \"xml\": \"<feature name=\\\"Geolocation\\\"><param name=\\\"android-package\\\" value=\\\"org.apache.cordova.geolocation.GeoBroker\\\" /></feature>\",\r\n                            \"count\": 1\r\n                        }\r\n                    ]\r\n                }\r\n            },\r\n            \"AndroidManifest.xml\": {\r\n                \"parents\": {\r\n                    \"/*\": [\r\n                        {\r\n                            \"xml\": \"<uses-permission android:name=\\\"android.permission.ACCESS_COARSE_LOCATION\\\" />\",\r\n                            \"count\": 1\r\n                        },\r\n                        {\r\n                            \"xml\": \"<uses-permission android:name=\\\"android.permission.ACCESS_FINE_LOCATION\\\" />\",\r\n                            \"count\": 1\r\n                        },\r\n                        {\r\n                            \"xml\": \"<uses-permission android:name=\\\"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS\\\" />\",\r\n                            \"count\": 1\r\n                        }\r\n                    ]\r\n                }\r\n            }\r\n        }\r\n    },\r\n    \"installed_plugins\": {\r\n       \r\n        \"org.apache.cordova.geolocation\": {\r\n            \"PACKAGE_NAME\": \"com.example.hello\"\r\n        }\r\n    },\r\n    \"dependent_plugins\": {}\r\n}\r\n```"}}