{ "id": "173602", "key": "TIMOB-27067", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20791", "name": "Release 8.0.2", "archived": false, "released": true, "releaseDate": "2019-06-18" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-05-24T18:18:05.000+0000", "created": "2019-05-07T21:53:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "battery", "engSchedule", "manifest", "tiapp.xml" ], "versions": [], "issuelinks": [ { "id": "57621", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172929", "key": "TIMOB-26777", "fields": { "summary": "Android: Window UI disappears when connecting/disconnecting keyboard", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "57620", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "173214", "key": "TIMOB-26911", "fields": { "summary": "Crash log analysis when the app goes into the background.", "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 } } } }, { "id": "57619", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173418", "key": "AC-6187", "fields": { "summary": "Empty screen after a long time of inactivity", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-24T18:18:05.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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nOn Android 9.0 and higher, a Titanium window's UI may disappear when the system's battery optimizer turn on or off. This can happen if the XML activities defined in the \"tiapp.xml\" are missing \"android:configChanges\" value \"uiMode\".\r\n\r\nThis issue can be reproduced consistently in an Android 9 (API 28) emulator.\r\n\r\n*Steps to reproduce:*\r\n# Create a new Titanium Classic \"Default Project\".\r\n# Build and run on an Android 9 (aka: API 28) emulator.\r\n# In the Android emulator's toolbar, click the \"...\" button.\r\n# An \"Extended Controls\" window will open next to the emulator.\r\n# Click on the \"Battery\" tab in this window.\r\n# Go to the \"Charge level\" and lower it to 10%.\r\n# Click the \"Charge connection\" drop-down and change it from \"AC charger\" to \"None\" (or vice-versa).\r\n# In the emulator, if it asks if you want to enable the battery optimizer, tap \"Yes\".\r\n# Notice that the Titanium app's UI disappears.\r\n# Press the Android \"Back\" button.\r\n# Relaunch the app. (The UI will appear as normal.)\r\n# Click the emulator's \"Charge connection\" drop-down and change it back to \"AC charger\".\r\n# Notice that the Titanium app's UI disappears again.\r\n\r\n*Cause:*\r\nThe \"AndroidManifest.xml\" that is being generated by Titanium's build system is missing a setting. We need to add \"uiMode\" to every Titanium {{}} elements \"android:configChanges\" attribute.\r\n\r\n*Work-Around:*\r\nYou can work-around this issue by adding the following \"activity\" XML settings to the \"tiapp.xml\" file. The key thing here is to add all of the missing \"configChanges\" values. Particularly the \"uiMode\" value which solves this ticket's specific issue.\r\n{code:xml}\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: UI sometimes disappears on Android 9.0 and higher when battery saver turns on/off", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1136, "state": "closed", "name": "2019 Sprint 11", "startDate": "2019-05-18T17:39:52.830Z", "endDate": "2019-05-31T17:39:00.000Z", "completeDate": "2019-06-04T21:37:11.485Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "448317", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10884", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-11T04:53:16.000+0000", "updated": "2019-05-11T04:53:16.000+0000" }, { "id": "448498", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (8.0.x): https://github.com/appcelerator/titanium_mobile/pull/10900", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-18T00:16:13.000+0000", "updated": "2019-05-18T00:16:13.000+0000" }, { "id": "448565", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed. jenkin is failing test. waiting for resolving jenkin failure to merge", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-05-21T18:43:46.000+0000", "updated": "2019-05-21T18:43:46.000+0000" }, { "id": "448644", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on sdk 8.0.2.v20190522031334 and 8.1.0.v20190523084559. No Ui disappears. Works as expected.\r\n{CODE}\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 8.0.2.v20190522031334 and 8.1.0.v20190523084559\r\nEmulator =Pixel xl android 9.pixel android 9\r\nDevice = s5 samsung android 6\r\nCli =7.0.11\r\n{CODE}", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-05-24T18:18:01.000+0000", "updated": "2019-05-24T18:18:01.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }