{ "id": "171844", "key": "TIMOB-26161", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-24T01:27:17.000+0000", "created": "2018-06-26T20:26:14.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "activity", "alloy", "android", "listener", "reset" ], "versions": [], "issuelinks": [ { "id": "56665", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "171878", "key": "TIMOB-26181", "fields": { "summary": "Android: Application throws exception after close on 7.4.0", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-02-12T19:01:29.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": "Tested with a Pixel on Android 8.0 using a wireless keyboard. Build the app and you will see the OS logs appear. When a wireless keyboard is connected to the device via bluetooth it causes the app to soft reset on Android. I used \r\n{code:java}\r\nTi.App._restart();\r\n{code}\r\nbecause I've had problems with the soft reset holding things in memory.\r\n\r\nWhen\r\n{code:xml}\r\nfalse\r\n{code}\r\nthe listener works correctly. The app restarts and runs 'Start by OS' and 'Resume by OS'.\r\n\r\nWhen\r\n{code:xml}\r\ntrue\r\n{code}\r\nthe listener does not fire the 'START' & 'RESUME' activity listener after the reset. You will notice this by the lack of error logs.\r\n", "attachment": [ { "id": "65296", "filename": "index.js", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-26T20:25:17.000+0000", "size": 1840, "mimeType": "application/javascript" }, { "id": "65297", "filename": "index.xml", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-26T20:25:14.000+0000", "size": 180, "mimeType": "text/xml" }, { "id": "65298", "filename": "tiapp.xml", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-26T20:25:09.000+0000", "size": 3624, "mimeType": "text/xml" } ], "flagged": false, "summary": "Android: Activity Listening Broken on run-on-main-thread = true", "creator": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with a Pixel on Android 8.0 using a wireless keyboard", "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "438754", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~josh.mocek] Is this Android 8 only? And which Ti-SDK version are you using?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-27T09:14:03.000+0000", "updated": "2018-06-27T09:15:41.000+0000" }, { "id": "438759", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hans Knochel I can test on a different android version, and SDK is on 7.1.1", "updateAuthor": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-27T13:30:52.000+0000", "updated": "2018-06-27T13:30:52.000+0000" }, { "id": "438761", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hans Knochel\r\nsame bad results on\r\nAndroid 7.1.1 & SDK 7.1.1\r\nAndroid 7.1.1 & SDK 7.2.0\r\nAndroid 7.1.1 & SDK 7.0.2", "updateAuthor": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-27T14:01:13.000+0000", "updated": "2018-06-27T14:01:13.000+0000" }, { "id": "438776", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/10137", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-27T17:56:08.000+0000", "updated": "2018-06-27T17:56:08.000+0000" }, { "id": "440755", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "\r\n*Closing ticket.*\r\n\r\nActivity callbacks are now being called when running on main thread.\r\n\r\nThe fix is present in SDK:\r\n\r\n\r\n{noformat}\r\n7.4.0.v20180810061237\r\n{noformat}\r\n\r\n*ENV*\r\n\r\n\r\n{noformat}\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.0.4\r\nTi CLI: 5.1.1\r\nNode: 10.3.0\r\nNPM: 6.3.0\r\n{noformat}\r\n", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2018-08-14T14:07:20.000+0000", "updated": "2018-08-14T14:07:20.000+0000" }, { "id": "446022", "author": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is now firing the start and resume events, but not the destroy event like when run on main thread is false", "updateAuthor": { "name": "josh.mocek", "key": "josh.mocek", "displayName": "josh.mocek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-12T19:01:29.000+0000", "updated": "2019-02-12T19:01:29.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }