{"action":"opened","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/340","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/340/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/340/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-barcodescanner/issues/340/events","html_url":"https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/340","id":181799339,"number":340,"title":"iOS 10/iPhone 6s Plus camera does not appear until after going to home screen and back into application","user":{"login":"matt-schrader","id":1289685,"avatar_url":"https://avatars.githubusercontent.com/u/1289685?v=3","gravatar_id":"","url":"https://api.github.com/users/matt-schrader","html_url":"https://github.com/matt-schrader","followers_url":"https://api.github.com/users/matt-schrader/followers","following_url":"https://api.github.com/users/matt-schrader/following{/other_user}","gists_url":"https://api.github.com/users/matt-schrader/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-schrader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-schrader/subscriptions","organizations_url":"https://api.github.com/users/matt-schrader/orgs","repos_url":"https://api.github.com/users/matt-schrader/repos","events_url":"https://api.github.com/users/matt-schrader/events{/privacy}","received_events_url":"https://api.github.com/users/matt-schrader/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-08T02:38:34Z","updated_at":"2016-10-08T02:38:34Z","closed_at":null,"body":"### Expected Behavior\r\nCamera opens right away after clicking scan button\r\n\r\n### Actual Behavior\r\nThe camera does not open until I double click home button, then enter the app again.  It seems like a force of the view rerendering causes the camera to show.\r\n\r\n### Reproduce Scenario (including but not limited to)\r\n\r\n\r\n#### Steps to Reproduce\r\nHave an onclick on a button that causes scanner to open.  Observer that scanner does not open.\r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\niOS 10.0.2\r\n\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\n\r\n#### Cordova CLI version and cordova platform version\r\n\r\n    cordova --version\r\n    cordova platforms\r\n\r\n#### Plugin version\r\n\r\n    cordova plugin version | grep phonegap-plugin-barcodescanner\r\n\r\n#### Sample Code that illustrates the problem\r\nthis.scanner.scan(\r\n      function (result) {\r\n        me.setState({\r\n          kegID: result.text\r\n        });\r\n        me.doScan(me.state.kegID);\r\n      },\r\n      function (error) {\r\n          alert(\"Scanning failed: \" + error);\r\n      }\r\n    );\r\n\r\n#### Logs taken while reproducing problem\r\nDuring the click event I do not see anything in the logs.  I do see text in the log after the camera actually opens."}}
{"actor":{"display_login":"matt-schrader"}}