Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17658] iOS8: Orientation locked in portrait when returning from image capture and rotating the iPad device

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-26T18:39:54.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.4.0, Release 3.5.0
ComponentsiOS
Labelsn/a
ReporterEduardo Gomez
AssigneePedro Enrique
Created2014-09-09T15:52:51.000+0000
Updated2014-11-21T20:27:56.000+0000

Description

Issue description

Orientation locked in portrait when returning from image capture and rotating the iPad device

Steps to reproduce

Please use the sample attached.

Launch the app in Landscape mode with the Home button on the right

Rotate the app around, notice the UI changes to reflect the orientation correctly.

Get it back into landscape mode.

Click Launch Camera

Click the (X) button and then immediately rotate the tablet to portrait up or portrait down.

Notice that the image capture view will close but then the app gets skewed into an akward orientation. (Seems to be in portrait but its in landscape orientation. See the attached screenshot called iPad_RDC_Oreintation_Akward.png.)

Keep rotating the device, notice that you cannot get the app back on screen fully. The app is now stuck in this orientation state.

Attachments

FileDateSize
iPad_RDC_Oreintation_Akward.png2014-09-09T15:52:51.000+000018892
RDC_Testing_iPad.zip2014-09-09T15:52:51.000+00007660189
TestProject.zip2014-09-15T15:20:57.000+0000695444

Comments

  1. Eduardo Gomez 2014-09-09

    [~jrhinehart], please add test results when time allows you. Thanks. Case 00002640 Ref: https://na10.salesforce.com/500F000000QR2G4
  2. Ingo Muschenetz 2014-09-09

    [~egomez] Does this need to be a private issue? Also, can we please have a simple test case?
  3. Olga Romero 2014-09-09

  4. Ingo Muschenetz 2014-09-12

    [~jalter] to review.
  5. Michael Potter 2014-09-14

    As a work-a-round, we are detecting that it is running on iOS 8 and locking the app in portrait mode.
  6. Michael Potter 2014-09-14

  7. Ingo Muschenetz 2014-09-15

    From Michael Potter: Attached is a sample program (TestProject.zip) that demonstrates a suspected bug in iOS8 that does not happen in iOS7. The bug is demonstrated in step 15 and 16. 1) unzip the package 2) cd TestProject 3) ti build --platform ios 4) expect to see 'Project failed to build' 5) start xcode 6 6) open the project in the build/iphone/ folder 7) change to a universal app 8) connect ipad running iOS 8 9) push app to ipad using run button 10) expect app to start on its own 11) Hold ipad in portrait mode 12) tap "Take a Photo" button 13) note that while moving ipad side to side the display moves consistent with motion of iPad 14) rotate ipad to landscape 15) While rotating: note that camera display is INCONSISTENT with rotation. 16) After rotation: note that while moving side to side ipad the display moves INCONSISTENT with motion of iPad
  8. Pedro Enrique 2014-09-15

    This was fixed in TIMOB-17662 There is a new property that needs to added called autoRotate and set to false
       Titanium.Media.showCamera({
           success:function(event) {
           },
           cancel:function() {
           },
           error:function(error) {
           },
           autoRotate: false,        
           mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO]
       });
       
  9. Visalakshi Chidambaram 2014-09-18

    Verified in the following environment : 
 Appcelerator Studio, build: 3.4.0.201409161950 CLI: 3.4.0-rc3 Alloy: 1.5.0-rc2 Code processor: 1.1.1 SDK: 3.4.0.v20140916151649 Mac OSX version 10.9.4 Xcode: Xcode 6 GM seed

JSON Source