{"action":"created","issue":{"url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/79","repository_url":"https://api.github.com/repos/mbppower/CordovaCameraPreview","labels_url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/79/comments","events_url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/79/events","html_url":"https://github.com/mbppower/CordovaCameraPreview/issues/79","id":126358929,"number":79,"title":"Preview not shown in Android","user":{"login":"phiphuc89","id":12620270,"avatar_url":"https://avatars.githubusercontent.com/u/12620270?v=3","gravatar_id":"","url":"https://api.github.com/users/phiphuc89","html_url":"https://github.com/phiphuc89","followers_url":"https://api.github.com/users/phiphuc89/followers","following_url":"https://api.github.com/users/phiphuc89/following{/other_user}","gists_url":"https://api.github.com/users/phiphuc89/gists{/gist_id}","starred_url":"https://api.github.com/users/phiphuc89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phiphuc89/subscriptions","organizations_url":"https://api.github.com/users/phiphuc89/orgs","repos_url":"https://api.github.com/users/phiphuc89/repos","events_url":"https://api.github.com/users/phiphuc89/events{/privacy}","received_events_url":"https://api.github.com/users/phiphuc89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-13T07:23:43Z","updated_at":"2016-03-07T16:23:46Z","closed_at":null,"body":"I'm making a Ionic app, I'm using your plugins to custom camera preview size. It worked perfectly on iOS, but in Android the preview wasn't shown. When I pressed button to take a photo, a black box appeared and gone immediately.\r\n\r\nHere is my code:\r\n\r\n```javascript\r\nvm.previewRect = {\r\n      x: 20,\r\n      y: 40,\r\n      width: window.innerWidth - 40,\r\n      height: window.innerWidth - 40\r\n};\r\n\r\nfunction openCamera() {\r\n       cordova.plugins.camerapreview.startCamera(vm.previewRect, \"front\", false, false, false);\r\n}\r\n```\r\n\r\nPlease help me resolve it. Thank you."},"comment":{"url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/comments/193327168","html_url":"https://github.com/mbppower/CordovaCameraPreview/issues/79#issuecomment-193327168","issue_url":"https://api.github.com/repos/mbppower/CordovaCameraPreview/issues/79","id":193327168,"user":{"login":"adamscybot","id":1210785,"avatar_url":"https://avatars.githubusercontent.com/u/1210785?v=3","gravatar_id":"","url":"https://api.github.com/users/adamscybot","html_url":"https://github.com/adamscybot","followers_url":"https://api.github.com/users/adamscybot/followers","following_url":"https://api.github.com/users/adamscybot/following{/other_user}","gists_url":"https://api.github.com/users/adamscybot/gists{/gist_id}","starred_url":"https://api.github.com/users/adamscybot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamscybot/subscriptions","organizations_url":"https://api.github.com/users/adamscybot/orgs","repos_url":"https://api.github.com/users/adamscybot/repos","events_url":"https://api.github.com/users/adamscybot/events{/privacy}","received_events_url":"https://api.github.com/users/adamscybot/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T16:23:46Z","updated_at":"2016-03-07T16:23:46Z","body":"+1"}}