{ "id": "174178", "key": "AC-6381", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2019-12-02T10:38:13.000+0000", "created": "2019-09-26T07:01:39.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "57968", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "174434", "key": "TIMOB-27609", "fields": { "summary": "iOS 13: Unable to set status bar color with TabGroup backgroundColor color.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-12-02T10:38:13.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "When I try to set the statusbarColor on iOS the App crashes. I think it is not allowed to set the Statusbarcolor with the iOS 13 SDK globally.\r\nI try to run this code in my alloy.js:\r\n{code:javascript}\r\nTi.UI.iOS.statusBarBackgroundColor = \"#013487\";\r\n{code}\r\nHere is the error:\r\n\r\n{code:java}\r\nmessage = \"App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.\";\r\nnativeStack = \"3 Foundation 0x000000010c182de9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191\\n4 UIKitCore 0x000000011964729f -[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:] + 255\\n5 UIKitCore 0x0000000119647770 -[UIApplication statusBarWindow] + 24\\n6 Foundation 0x000000010c1abe07 -[NSObject(NSKeyValueCoding) valueForKey:] + 317\\n7 eRef 0x0000000109f52e88 -[TiUIiOSProxy setStatusBarBackgroundColor:] + 712\\n8 TitaniumKit0x000000010eeb0490 -[KrollObject setValue:forKey:] + 410\\n9 TitaniumKit0x000000010eeae5b8 KrollSetProperty + 360\\n10 JavaScriptCore 0x000000010a506195 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE3putEPNS_6JSCellEPNS_9ExecStateENS_12PropertyNameENS_7JSValueERNS_15PutPropertySlotE + 277\\n11 JavaScriptCore 0x000000010a9d0de1 llint_slow_path_put_by_id + 3201\\n12 JavaScriptCore 0x000000010a4c6979 llint_entry + 39824\\n13 JavaScriptCore 0x000000010a4d3a13 llint_entry + 93226\\n14 JavaScriptCore 0x000000010a4d3a13 llint_entry + 93226\\n15 JavaScriptCore 0x000000010a4bcc3f vmEntryToJavaScript + 200\\n16 JavaScriptCore 0x000000010a8d1571 _ZN3JSC11Interpreter14executeProgramERKNS_10SourceCodeEPNS_9ExecStateEPNS_8JSObjectE + 11361\\n17 JavaScriptCore 0x000000010ab52b6b _ZN3JSC8evaluateEPNS_9ExecStateERKNS_10SourceCodeENS_7JSValueERN3WTF8NakedPtrINS_9ExceptionEEE + 299\\n18 JavaScriptCore 0x000000010a5050b3 JSEvaluateScript + 675\\n19 TitaniumKit0x000000010eeeb030 -[KrollEval jsInvokeInContext:exception:] + 175\\n20 TitaniumKit0x000000010eeb4ca9 -[KrollBridge loadCommonJSModule:withSourceURL:] + 309\\n21 TitaniumKit0x000000010eeb564e -[KrollBridge loadJavascriptText:fromFile:withContext:] + 68\\n22 TitaniumKit0x000000010eeb6a37 -[KrollBridge require:path:] + 377\"; \r\n{code}\r\n\r\nI think it is connected to TIMOB-27384\r\n", "attachment": [], "flagged": false, "summary": "App crashes when trying to set statusBarBackgroundColor on iOS", "creator": { "name": "dillichmann", "key": "dillichmann", "displayName": "David Illichmann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dillichmann", "key": "dillichmann", "displayName": "David Illichmann", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK. 8.2.0.GA\r\nAppcelerator CLI 7.1.1.GA\r\nXcode 11\r\nMacOS 10.14.6", "comment": { "comments": [ { "id": "452346", "author": { "name": "btknorr", "key": "btknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "body": "What is the workaround? Our app is crashing because of this.", "updateAuthor": { "name": "btknorr", "key": "btknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "created": "2019-10-29T21:37:11.000+0000", "updated": "2019-10-29T21:37:11.000+0000" }, { "id": "452357", "author": { "name": "dillichmann", "key": "dillichmann", "displayName": "David Illichmann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi @Brian Knorr !\r\nUnfortunately there is no workaround. We just don't use a custom color for the status bar anymore.\r\n@Shak Hossain Are there any plans to fix this issue?\r\n", "updateAuthor": { "name": "dillichmann", "key": "dillichmann", "displayName": "David Illichmann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-30T07:11:56.000+0000", "updated": "2019-10-30T07:11:56.000+0000" }, { "id": "452439", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, You can only use the property for coloring the status bar in here. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS.StatusBar", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-11-03T20:36:42.000+0000", "updated": "2019-11-03T20:36:42.000+0000" }, { "id": "452959", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Here is the PR - https://github.com/appcelerator/titanium_mobile/pull/11370\r\nThis issue will be fixed in our upcoming release version 9.0.0\r\n\r\nThanks!\r\n", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2019-12-02T10:37:27.000+0000", "updated": "2019-12-02T10:37:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }