You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michael Schmidt (JIRA)" <ji...@apache.org> on 2016/05/29 14:39:12 UTC
[jira] [Comment Edited] (CB-11287) iOS: landscape iPhone app:
orientation turns to portrait after camera displayed
[ https://issues.apache.org/jira/browse/CB-11287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15305930#comment-15305930 ]
Michael Schmidt edited comment on CB-11287 at 5/29/16 2:38 PM:
---------------------------------------------------------------
this issue appears
- on iPhone
- for both camera roll & picker
- device must be in landscape (landscape left / landscape right) before opening the camera
showing the camera popover / camera picker in landscape destroys the webview orientation
- iOS shows the request for permission ("App Would Like to Access Your Photos") as well as the camera picker only in portrait mode
- the webview doesn't return to landscape mode - this holds true even when portrait in general is allowed in the app and the device is rotated manually back and forth to landscape
was (Author: mobidev3):
this issue appears
- for both camera roll & picker
- device must be in landscape (landscape left / landscape right) before opening the camera
showing the camera popover / camera picker in landscape destroys the webview orientation
- iOS shows the request for permission ("App Would Like to Access Your Photos") as well as the camera picker only in portrait mode
- the webview doesn't return to landscape mode - this holds true even when portrait in general is allowed in the app and the device is rotated manually back and forth to landscape
> iOS: landscape iPhone app: orientation turns to portrait after camera displayed
> -------------------------------------------------------------------------------
>
> Key: CB-11287
> URL: https://issues.apache.org/jira/browse/CB-11287
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Affects Versions: 2.2.0
> Environment: cordova 6.1.1
> ios 4.1.1
> cordova-plugin-camera 2.2.0 "Camera"
> Reporter: Michael Schmidt
> Priority: Critical
> Labels: iOS
>
> *situation*
> * app in landscape mode
> {code:JavaScript}
> <preference name="Orientation" value="landscape" />
> {code}
> * camera options
> {code:JavaScript}
> {
> destinationType: Camera.DestinationType.FILE_URI,
> sourceType: Camera.PictureSourceType.CAMERA,
> encodingType: Camera.EncodingType.JPEG,
> mediaType: Camera.MediaType.PICTURE,
> };
> {code}
> *problem*
> After displaying the camera, the app viewport turns to portrait mode - despite that the whole app is set to landscape.
> This takes place for either taking a picture or pressing cancel.
> This bug occurs only on iPhone, it works on iPad though.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org