{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ng-cordova/issues/874","labels_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/874/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/874/comments","events_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/874/events","html_url":"https://github.com/driftyco/ng-cordova/issues/874","id":94071518,"number":874,"title":"Watch Acceleration Throws TypeError exception on browser","user":{"login":"davidecavaliere","id":3493522,"avatar_url":"https://avatars.githubusercontent.com/u/3493522?v=3","gravatar_id":"","url":"https://api.github.com/users/davidecavaliere","html_url":"https://github.com/davidecavaliere","followers_url":"https://api.github.com/users/davidecavaliere/followers","following_url":"https://api.github.com/users/davidecavaliere/following{/other_user}","gists_url":"https://api.github.com/users/davidecavaliere/gists{/gist_id}","starred_url":"https://api.github.com/users/davidecavaliere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidecavaliere/subscriptions","organizations_url":"https://api.github.com/users/davidecavaliere/orgs","repos_url":"https://api.github.com/users/davidecavaliere/repos","events_url":"https://api.github.com/users/davidecavaliere/events{/privacy}","received_events_url":"https://api.github.com/users/davidecavaliere/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-09T14:59:06Z","updated_at":"2015-08-02T02:19:39Z","closed_at":"2015-08-02T02:19:39Z","body":"Didn't had the time to check browsers other than chrome version 43.0.2357.130 64 bit on Linux.\r\n\r\nWhen trying to get acceleration in browser as in: \r\n\r\n```javascript\r\nvar watch = $cordovaDeviceMotion.watchAcceleration({\r\n  frequency : 5000\r\n});\r\n```\r\n\r\nconsole shows this error:\r\n\r\n```\r\nUncaught TypeError: Cannot read property 'watchAcceleration' of undefined\r\n```\r\n\r\nThis is due to\r\n\r\n``` \r\nnavigator.accelerometer \r\n```\r\nbeing 'undefined' in browser"},"comment":{"url":"https://api.github.com/repos/driftyco/ng-cordova/issues/comments/126978060","html_url":"https://github.com/driftyco/ng-cordova/issues/874#issuecomment-126978060","issue_url":"https://api.github.com/repos/driftyco/ng-cordova/issues/874","id":126978060,"user":{"login":"gortok","id":699891,"avatar_url":"https://avatars.githubusercontent.com/u/699891?v=3","gravatar_id":"","url":"https://api.github.com/users/gortok","html_url":"https://github.com/gortok","followers_url":"https://api.github.com/users/gortok/followers","following_url":"https://api.github.com/users/gortok/following{/other_user}","gists_url":"https://api.github.com/users/gortok/gists{/gist_id}","starred_url":"https://api.github.com/users/gortok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gortok/subscriptions","organizations_url":"https://api.github.com/users/gortok/orgs","repos_url":"https://api.github.com/users/gortok/repos","events_url":"https://api.github.com/users/gortok/events{/privacy}","received_events_url":"https://api.github.com/users/gortok/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T02:19:39Z","updated_at":"2015-08-02T02:19:39Z","body":"Cordova Plugins don't work in the browser."}}