Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27384] iOS 13: App can crash if deprecated "statusBarFrame" property is called

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionNot Our Bug
Resolution Date2019-10-28T18:30:16.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelsengSchedule
ReporterHans Knöchel
AssigneeVijay Singh
Created2019-09-08T20:15:35.000+0000
Updated2019-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

Comments

  1. Hans Knöchel 2019-09-08

    cc [~amukherjee] [~vijaysingh] This one is important for 8.2.0, so apps don't crash in complex cases.
  2. Vijay Singh 2019-09-27

    [~lchoudhary] Can you test it please? You can get steps in comment of PR.
  3. Satyam Sekhri 2019-09-30

    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.

JSON Source