{"action":"created","issue":{"url":"https://api.github.com/repos/wildabeast/BarcodeScanner/issues/250","labels_url":"https://api.github.com/repos/wildabeast/BarcodeScanner/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/wildabeast/BarcodeScanner/issues/250/comments","events_url":"https://api.github.com/repos/wildabeast/BarcodeScanner/issues/250/events","html_url":"https://github.com/wildabeast/BarcodeScanner/pull/250","id":60102122,"number":250,"title":"added support for adding config parameter which is passed to barcode scanner activity","user":{"login":"fh-seannicholls","id":8386017,"avatar_url":"https://avatars.githubusercontent.com/u/8386017?v=3","gravatar_id":"","url":"https://api.github.com/users/fh-seannicholls","html_url":"https://github.com/fh-seannicholls","followers_url":"https://api.github.com/users/fh-seannicholls/followers","following_url":"https://api.github.com/users/fh-seannicholls/following{/other_user}","gists_url":"https://api.github.com/users/fh-seannicholls/gists{/gist_id}","starred_url":"https://api.github.com/users/fh-seannicholls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fh-seannicholls/subscriptions","organizations_url":"https://api.github.com/users/fh-seannicholls/orgs","repos_url":"https://api.github.com/users/fh-seannicholls/repos","events_url":"https://api.github.com/users/fh-seannicholls/events{/privacy}","received_events_url":"https://api.github.com/users/fh-seannicholls/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wildabeast/BarcodeScanner/labels/android","name":"android","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-06T13:33:57Z","updated_at":"2016-01-19T01:10:46Z","closed_at":"2015-03-31T23:43:03Z","pull_request":{"url":"https://api.github.com/repos/wildabeast/BarcodeScanner/pulls/250","html_url":"https://github.com/wildabeast/BarcodeScanner/pull/250","diff_url":"https://github.com/wildabeast/BarcodeScanner/pull/250.diff","patch_url":"https://github.com/wildabeast/BarcodeScanner/pull/250.patch"},"body":"Suggested solution to PR #238 \r\n\r\nReplaces **com.phonegap.plugins.barcodescanner.SCAN** activity with **com.google.zxing.client.android.SCAN** and permits supplying configuration options to the android activity via Intents.\r\n\r\nfor example:\r\n```javascript\r\nvar config = {\r\n        SCAN_WIDTH: width,\r\n        SCAN_HEIGHT: height\r\n}\r\n```\r\n\r\nWhere the keyname is set as the intent extra's name, and the value is likewise set as the value. This allows any supporting configuration to be supplied."},"comment":{"url":"https://api.github.com/repos/wildabeast/BarcodeScanner/issues/comments/172696745","html_url":"https://github.com/wildabeast/BarcodeScanner/pull/250#issuecomment-172696745","issue_url":"https://api.github.com/repos/wildabeast/BarcodeScanner/issues/250","id":172696745,"user":{"login":"capitancafe","id":6079447,"avatar_url":"https://avatars.githubusercontent.com/u/6079447?v=3","gravatar_id":"","url":"https://api.github.com/users/capitancafe","html_url":"https://github.com/capitancafe","followers_url":"https://api.github.com/users/capitancafe/followers","following_url":"https://api.github.com/users/capitancafe/following{/other_user}","gists_url":"https://api.github.com/users/capitancafe/gists{/gist_id}","starred_url":"https://api.github.com/users/capitancafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capitancafe/subscriptions","organizations_url":"https://api.github.com/users/capitancafe/orgs","repos_url":"https://api.github.com/users/capitancafe/repos","events_url":"https://api.github.com/users/capitancafe/events{/privacy}","received_events_url":"https://api.github.com/users/capitancafe/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T01:10:46Z","updated_at":"2016-01-19T01:10:46Z","body":"what is the correct way to pass parameters?\r\nI need to have a long, narrow window because need read two codebar one is above the other, and it is not possible with the default size. \r\nvar config = {\r\n        SCAN_WIDTH: 100,\r\n        SCAN_HEIGHT: 50\r\n}\r\n      cordova.plugins.barcodeScanner.scan(config, function (result) { .......\r\n\r\nthis return error \"BarcodeScanner.scan failure: success callback parameter must be a function\",\r\nThanks.\r\n"}}