[TIMOB-27384] iOS 13: App can crash if deprecated "statusBarFrame" property is called
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Resolved |
Resolution | Not Our Bug |
Resolution Date | 2019-10-28T18:30:16.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | engSchedule |
Reporter | Hans Knöchel |
Assignee | Vijay Singh |
Created | 2019-09-08T20:15:35.000+0000 |
Updated | 2019-12-02T23:06:32.000+0000 |
Description
When accessing the (in iOS 13 deprecated) "statusBarFrame" property, e.g. for rare view controller changes, the app can crash. Migrating to the iOS 13+ "statusBarManager" API of the "UIWindowScene" will fix the issue.
It can be reproduced by trying my [titanium-scanner](https://github.com/hansemannn/titanium-scanner) module and clicking "Cancel" on the scanner view controller.
Pull request: https://github.com/appcelerator/titanium_mobile/pull/11201
cc [~amukherjee] [~vijaysingh] This one is important for 8.2.0, so apps don't crash in complex cases.
[~lchoudhary] Can you test it please? You can get steps in comment of PR.
Using the example app in Ti.Scanner module as provided by [~hknoechel] there were no issues upon clicking Cancel on the scanner view. Detailed steps as mentioned in the PR https://github.com/appcelerator/titanium_mobile/pull/11201 However was able to reproduce a crash as mentioned by [~vijaysingh] in the same PR following the steps as below: 1. Click on 'Scan Document'. 2. Click on camera button to capture photo. 3. Click on 'Keep Scan' button, which will open camera again and previously captured photo will be in preview form in bottom left side. 4. Click the preview image. 5. Click on 'done' or 'retake' button.