[
https://issues.apache.org/jira/browse/CB-12195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Schmidt updated CB-12195:
---------------------------------
Description:
h4. steps to reproduce
* create cordova app
{code}
cordova create MyAppTest33
cd MyAppTest33/
cordova platform add ios
cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="
" --variable PHOTOLIBRARY_USAGE_DESCRIPTION=" " --save
{code}
* add camera sample code to www folder
{code}
https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/index.html
https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/scripts/main.js
https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/styles/theme.css
{code}
* change config.xml to landscape app
{code}
<preference name="Orientation" value="landscape" />
{code}
h4. action: hold phone in portrait & open camera on iPhone
* hold iPhone in portrait
* open app on real device: iPhone
* open camera ('take picture')
h4. problem: camera window is rotated 90°
* camera window is rotated 90°, shutter button not visible
h4. root cause are all variants of status-bar-plugin
* reproduces in 8 out of 10 attempts
* disappears after double-clicking the home-button and re-entering the app
* occurs mostly on first app start, after making it disappear once by
double-clicking the home-button it does not appear again
was:
h4. steps to reproduce
* create cordova app
{code}
cordova create MyAppTest33
cd MyAppTest33/
cordova platform add ios
cordova plugin add https://github.com/apache/cordova-plugin-statusbar.git --save
cordova plugin add cordova-plugin-camera --variable CAMERA_USAGE_DESCRIPTION="
" --variable PHOTOLIBRARY_USAGE_DESCRIPTION=" " --save
{code}
* add camera sample code to www folder
{code}
https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/index.html
https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/scripts/main.js
https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/styles/theme.css
{code}
* change config.xml to landscape app
{code}
<preference name="Orientation" value="landscape" />
{code}
h4. action: hold phone in portrait & open camera on iPhone
* hold iPhone in portrait
* open app on real device: iPhone
* open camera ('take picture')
h4. problem: camera window is rotated 90°
* camera window is rotated 90°, shutter button not visible
h4. root cause are all variants of status-bar-plugin
* master: reproduces in 9 out of 10 attempts
* CB-12141: reproduces in 9 out of 10 attempts
** https://github.com/jcesarmobile/cordova-plugin-statusbar/tree/CB-12141
* CB-12141-2: reproduces in 7 out of 10 attempts
** https://github.com/jcesarmobile/cordova-plugin-statusbar/tree/CB-12141-2
--> the good thing is that it at least reproduces rather reliably
> camera rotates on landscape iPhone app into portrait for 8 of 10 times
> ----------------------------------------------------------------------
>
> Key: CB-12195
> URL: https://issues.apache.org/jira/browse/CB-12195
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Environment: iPhone 7 (used to reproduce on iPhone 6s as well)
> iOS 10.1.1, iOS 9 showed this as well
> cordova 6.4.0
> cordova-plugin-camera 2.3.0
> Reporter: Michael Schmidt
> Labels: iOS
>
> h4. steps to reproduce
> * create cordova app
> {code}
> cordova create MyAppTest33
> cd MyAppTest33/
> cordova platform add ios
> cordova plugin add cordova-plugin-camera --variable
> CAMERA_USAGE_DESCRIPTION=" " --variable PHOTOLIBRARY_USAGE_DESCRIPTION=" "
> --save
> {code}
> * add camera sample code to www folder
> {code}
> https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/index.html
> https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/scripts/main.js
> https://github.com/Icenium/Sample-Camera/blob/master/Camera%20Sample/styles/theme.css
> {code}
> * change config.xml to landscape app
> {code}
> <preference name="Orientation" value="landscape" />
> {code}
> h4. action: hold phone in portrait & open camera on iPhone
> * hold iPhone in portrait
> * open app on real device: iPhone
> * open camera ('take picture')
> h4. problem: camera window is rotated 90°
> * camera window is rotated 90°, shutter button not visible
> h4. root cause are all variants of status-bar-plugin
> * reproduces in 8 out of 10 attempts
> * disappears after double-clicking the home-button and re-entering the app
> * occurs mostly on first app start, after making it disappear once by
> double-clicking the home-button it does not appear again
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]