[TIMOB-24137] iOS 10 Camera Overlay is not fullscreen
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2016-11-11T12:41:44.000+0000 |
Affected Version/s | Release 5.5.0, Release 5.5.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Ricardo Ramirez |
Assignee | Hans Knöchel |
Created | 2016-11-10T21:27:25.000+0000 |
Updated | 2017-03-24T18:57:13.000+0000 |
Description
Issue description
Prior to iOS 10 when Ti.Media.showCamera was called with showControls set to false the camera would show as full screen. As of iOS 10 there is a large black bar at the bottom If you run the app in iOS 8 or 9 you will see the camera goes full screen when the controls are hidden. On iOS 10 there will be a black bar at the bottom of the screen.Steps to Reproduce
Download the app testcase
Run
Click on the custom overlay camera button
The camera is not fullscreen
Attachments
File | Date | Size |
---|---|---|
IMG_8357.PNG | 2016-11-10T21:26:38.000+0000 | 2212539 |
ios-10-camera-bug.zip | 2016-11-10T21:27:18.000+0000 | 10161090 |
Basically, it's a behavior change in iOS 10 causing transformations not being able to be applied before the camera is visible. This was discussed in TIMOB-23910 already. So previous to iOS 10, the native scale was automatically transformed to fit the bounds of the screen and Apple possibly changed this so the controls are primary placed in the below area (which is not the best solution for many use-cases). We could try to apply a custom transformation after the camera is opened, but that would still flicker like experienced in the [Stackoverflow](http://stackoverflow.com/a/39534542/5537752) thread. *EDIT*: Let me correct the above comment, it looks more like an issue related to the overlay itself then the camera. We are currently working on a fix regarding overlay sizing in TIMOB-23936 which will now also be tested against this test-case. If possible, please extract the test-case from the Alloy project so it can be tested within a single app.js to ease the debugging. Thanks! *EDIT2*: I checked your demo-code and noticed you must talk about the camera, not the overlay, so the title is very misleading. But anyway, as described above, this is an iOS 10 behavior that is documented in many open radar reports, e.g. [this one](http://www.openradar.me/28232651), so it is no Titanium-specific but a native issue. *EDIT3*: Crazy! I just tested using my iOS 10.2 Beta 2 and it seems to be fixed from Apple! I used the below (app.js'd) code:
Closing ticket with reference to the previous comments.