{ "id": "142451", "key": "TIMOB-18339", "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": [], "resolution": null, "resolutiondate": null, "created": "2015-01-07T20:03:03.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "cb-tooling", "qe-3.5.0" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-30T09:38:30.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "*Details:* On Android, if you kill and relaunch the same app *on device*, console logs will not appear again.\r\n\r\n*Note:* \r\n* This is *not a regression* since this occurs with SDK 3.4.1.GA\r\n* This *does not occur* on iOS, however, the expected behavior for iOS is debatable. After you kill and relaunch the same app on an *iOS device*, console logs will still appear, however, peculiar error logs appear first; see ios_logs.txt. \r\n* For Android, this \"seems expected\" since a new pid is generated after killing the app and the CLI does not track the new pid when the app relaunches. However, this does not achieve parity with iOS behavior; see android_logs.txt for what is printed out once the app is killed\r\n\r\n*Steps to reproduce:*\r\n1. Create a default Titanium app from CLI\r\n2. To track console logs, make sure the following pieces of code are added:\r\n{code}\r\n...\r\nwin1.addEventListener('focus', function() {\r\n Ti.API.info('####### focused on win1');\r\n});\r\n...\r\nwin2.addEventListener('focus', function() {\r\n Ti.API.info('####### focused on win2');\r\n});\r\n...\r\ntabGroup.open();\r\n{code}\r\n3. From CLI, install app to an Android device\r\n4. Once the app is launched, switch between the tabs and verify logs are printed out\r\n5. Next, kill the app either via Task Manager or holding home button and swiping\r\n6. Relaunch app and switch between the tabs\r\n\r\n*Actual:* Logs are not printed anymore to terminal.\r\n*Expected:* Logs should be printed to terminal again???", "attachment": [ { "id": "53448", "filename": "android_logs.txt", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-07T20:03:40.000+0000", "size": 352, "mimeType": "text/plain" }, { "id": "53449", "filename": "ios_logs.txt", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-07T20:03:40.000+0000", "size": 1276, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: CLI - After killing and relaunching an app on device, console logs will not appear again", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 3.4.1.GA, 3.5.0.v20150106224118 \r\nCLI: 3.4.1\r\nAlloy: 1.5.1\r\nDevices: Samsung Galaxy S4 (4.4.2)", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }