{"action":"created","issue":{"url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/157","repository_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin","labels_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/157/comments","events_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/157/events","html_url":"https://github.com/dpa99c/cordova-diagnostic-plugin/issues/157","id":192909577,"number":157,"title":"TypeError: Cannot read property 'diagnostic' of undefined","user":{"login":"mkj-git","id":7670798,"avatar_url":"https://avatars.githubusercontent.com/u/7670798?v=3","gravatar_id":"","url":"https://api.github.com/users/mkj-git","html_url":"https://github.com/mkj-git","followers_url":"https://api.github.com/users/mkj-git/followers","following_url":"https://api.github.com/users/mkj-git/following{/other_user}","gists_url":"https://api.github.com/users/mkj-git/gists{/gist_id}","starred_url":"https://api.github.com/users/mkj-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkj-git/subscriptions","organizations_url":"https://api.github.com/users/mkj-git/orgs","repos_url":"https://api.github.com/users/mkj-git/repos","events_url":"https://api.github.com/users/mkj-git/events{/privacy}","received_events_url":"https://api.github.com/users/mkj-git/received_events","type":"User","site_admin":false},"labels":[{"id":432045631,"url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/labels/awaiting%20response","name":"awaiting response","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-01T17:22:19Z","updated_at":"2016-12-04T09:11:18Z","closed_at":"2016-12-04T09:11:18Z","body":"I am using Android lollipop\r\ncordova 6.0.0\r\nionic 1.7.14\r\ndiagnostic plugin 3.3.2\r\n\r\ni am calling \r\n```\r\ndocument.addEventListener(\"resume\", function(){\r\n      cordova.plugins.diagnostic.isLocationAvailable(function(available){});\r\n}\r\n```\r\nwhenever i do `sudo ionic run android` in my ionic app. Sometimes it work fine sometime throw error\r\n\r\n`TypeError: Cannot read property 'diagnostic' of undefined`\r\n"},"comment":{"url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/comments/264692675","html_url":"https://github.com/dpa99c/cordova-diagnostic-plugin/issues/157#issuecomment-264692675","issue_url":"https://api.github.com/repos/dpa99c/cordova-diagnostic-plugin/issues/157","id":264692675,"user":{"login":"dpa99c","id":2345062,"avatar_url":"https://avatars.githubusercontent.com/u/2345062?v=3","gravatar_id":"","url":"https://api.github.com/users/dpa99c","html_url":"https://github.com/dpa99c","followers_url":"https://api.github.com/users/dpa99c/followers","following_url":"https://api.github.com/users/dpa99c/following{/other_user}","gists_url":"https://api.github.com/users/dpa99c/gists{/gist_id}","starred_url":"https://api.github.com/users/dpa99c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpa99c/subscriptions","organizations_url":"https://api.github.com/users/dpa99c/orgs","repos_url":"https://api.github.com/users/dpa99c/repos","events_url":"https://api.github.com/users/dpa99c/events{/privacy}","received_events_url":"https://api.github.com/users/dpa99c/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T09:11:18Z","updated_at":"2016-12-04T09:11:18Z","body":"Assuming you're using Ionic framework, see [this blog article](https://www.raymondcamden.com/2014/08/16/Ionic-and-Cordovas-DeviceReady-My-Solution/) for some help.\r\n\r\nHowever, this isn't a problem being caused by a bug with the plugin, hence I'm closing this as an issue."}}
{"actor":{"display_login":"dpa99c"}}