{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/94","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/94/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/94/events","html_url":"https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/94","id":112218521,"number":94,"title":"Cannot read property 'barcodeScanner' of undefined","user":{"login":"auchri","id":5092164,"avatar_url":"https://avatars.githubusercontent.com/u/5092164?v=3","gravatar_id":"","url":"https://api.github.com/users/auchri","html_url":"https://github.com/auchri","followers_url":"https://api.github.com/users/auchri/followers","following_url":"https://api.github.com/users/auchri/following{/other_user}","gists_url":"https://api.github.com/users/auchri/gists{/gist_id}","starred_url":"https://api.github.com/users/auchri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auchri/subscriptions","organizations_url":"https://api.github.com/users/auchri/orgs","repos_url":"https://api.github.com/users/auchri/repos","events_url":"https://api.github.com/users/auchri/events{/privacy}","received_events_url":"https://api.github.com/users/auchri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-19T19:46:48Z","updated_at":"2015-10-27T09:58:09Z","closed_at":null,"body":"I've added the plugin to my phonegap project with \r\n\r\n    phonegap plugin add https://github.com/phonegap/phonegap-plugin-barcodescanner.git\r\n\r\nAnd then I wan't to scan a qr-code after I click on a button:\r\n\r\n    onDeviceReady: function () {\r\n        $('#scanButton').click(function () {\r\n            cordova.plugins.barcodeScanner.scan(\r\n                function (result) {\r\n                    alert(\"We got a barcode\\n\" +\r\n                        \"Result: \" + result.text + \"\\n\" +\r\n                        \"Format: \" + result.format + \"\\n\" +\r\n                        \"Cancelled: \" + result.cancelled);\r\n                },\r\n                function (error) {\r\n                    alert(\"Scanning failed: \" + error);\r\n                }\r\n            );\r\n        });\r\n    }\r\n\r\nBut when I click on the button, I get this javascript error:\r\n\r\n    Cannot read property 'barcodeScanner' of undefined\r\n\r\nDo I miss something?"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/comments/151439808","html_url":"https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/94#issuecomment-151439808","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/94","id":151439808,"user":{"login":"hsmith825","id":1394060,"avatar_url":"https://avatars.githubusercontent.com/u/1394060?v=3","gravatar_id":"","url":"https://api.github.com/users/hsmith825","html_url":"https://github.com/hsmith825","followers_url":"https://api.github.com/users/hsmith825/followers","following_url":"https://api.github.com/users/hsmith825/following{/other_user}","gists_url":"https://api.github.com/users/hsmith825/gists{/gist_id}","starred_url":"https://api.github.com/users/hsmith825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsmith825/subscriptions","organizations_url":"https://api.github.com/users/hsmith825/orgs","repos_url":"https://api.github.com/users/hsmith825/repos","events_url":"https://api.github.com/users/hsmith825/events{/privacy}","received_events_url":"https://api.github.com/users/hsmith825/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T09:58:09Z","updated_at":"2015-10-27T09:58:09Z","body":"I am getting a similar problem on Android.  \"Cannot call method 'scan' of undefined\".  The plugin (earlier version) works on IOS.\r\n\r\nHelp???"}}