{"action":"opened","issue":{"url":"https://api.github.com/repos/cordova-plugin-camera-preview/cordova-plugin-camera-preview/issues/191","repository_url":"https://api.github.com/repos/cordova-plugin-camera-preview/cordova-plugin-camera-preview","labels_url":"https://api.github.com/repos/cordova-plugin-camera-preview/cordova-plugin-camera-preview/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/cordova-plugin-camera-preview/cordova-plugin-camera-preview/issues/191/comments","events_url":"https://api.github.com/repos/cordova-plugin-camera-preview/cordova-plugin-camera-preview/issues/191/events","html_url":"https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview/issues/191","id":210499299,"number":191,"title":"Camera-preview only shows after changing orientation in iOS 10","user":{"login":"flogr","id":10114196,"avatar_url":"https://avatars.githubusercontent.com/u/10114196?v=3","gravatar_id":"","url":"https://api.github.com/users/flogr","html_url":"https://github.com/flogr","followers_url":"https://api.github.com/users/flogr/followers","following_url":"https://api.github.com/users/flogr/following{/other_user}","gists_url":"https://api.github.com/users/flogr/gists{/gist_id}","starred_url":"https://api.github.com/users/flogr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flogr/subscriptions","organizations_url":"https://api.github.com/users/flogr/orgs","repos_url":"https://api.github.com/users/flogr/repos","events_url":"https://api.github.com/users/flogr/events{/privacy}","received_events_url":"https://api.github.com/users/flogr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-27T14:28:45Z","updated_at":"2017-02-27T14:28:45Z","closed_at":null,"body":"I have a functioning version of your plugin (using the latest version with all forks merged) working on Android 6.0.1, everything is fine.\r\n\r\nBut on an iPad Air 2 with iOS 10 the camera preview isn't showing on startup of the app, it only shows after i change orientation of my iPad from portrait to landscape or the other way round.\r\n\r\nI execute this code on startup of the app and it gets triggered correctly on both Android and iOS, i debugged that.\r\n\r\nvar startCam = function () {\r\n                        CameraPreview.startCamera({x: 0, y: 0, width: window.screen.width, height: window.screen.height, camera: \"back\", tapPhoto: true, previewDrag: false, toBack: true});\r\n                    };\r\n\r\nwindow.screen.width and height are both defined and have the same values on Android and iOS, so it seems to be an error in the plugin itself i think.\r\n\r\nPlease help!"}}
{"actor":{"display_login":"flogr"}}