cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-13854) Camera opens in portrait orientation on iphones
Date Mon, 12 Feb 2018 02:45:00 GMT


ASF GitHub Bot commented on CB-13854:

macdonst closed pull request #312: CB-13854(ios): fix Camera opens in portrait orientation
on iphones

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m
index 37b4ec84..c71de054 100644
--- a/src/ios/CDVCamera.m
+++ b/src/ios/CDVCamera.m
@@ -206,6 +206,7 @@ - (void)takePicture:(CDVInvokedUrlCommand*)command
                 [weakSelf displayPopover:pictureOptions.popoverOptions];
                 weakSelf.hasPendingOperation = NO;
             } else {
+                cameraPicker.modalPresentationStyle = UIModalPresentationCurrentContext;
                 [weakSelf.viewController presentViewController:cameraPicker animated:YES
                     weakSelf.hasPendingOperation = NO;


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Camera opens in portrait orientation on iphones
> -----------------------------------------------
>                 Key: CB-13854
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-ios, cordova-plugin-camera, cordova-plugin-media-capture
>    Affects Versions: cordova-ios 4.5.0
>         Environment: Cordova 7.1.0, Cordova 8.0.0
> iOS 9, 10, 11
> cordova-ios 4.5.x
>            Reporter: Damian Ibbotson
>            Priority: Major
> Using app in landscape on iphone and open the camera using a plugin (cordova-plugin-camera,
cordova-plugin-media-capture).  The camera opens in portrait mode.  Dialogs to request permissions
are therefore rotated, as is button text.
> Replicated with HelloCordova app with addition of cordova-plugin-camera.
> Using cordova-plugin-screen-orientation, we can see that an event to change the orientation
to portrait-primary is fired when the camera is opened.
> Does not affect ipads.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message