{ "id": "119960", "key": "TIMOB-15180", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15691", "description": "2013 Sprint 19", "name": "2013 Sprint 19", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15693", "description": "2013 Sprint 19 API", "name": "2013 Sprint 19 API", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-17T23:39:22.000+0000", "created": "2013-09-13T22:03:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_android", "qe-testadded" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [ { "id": "31863", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "117643", "key": "TIMOB-14674", "fields": { "summary": "Android: avoid code re-execution when opening app from a local notification", "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": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42:52.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": "Swiping app away from the recent apps list will kill any background or empty processes of the application but it won't stop the running services or remove the notifications from the status bar. See the discussion here:\r\nhttp://www.howtogeek.com/169549/what-exactly-happens-when-you-swipe-an-android-app-from-the-recent-apps-list/\r\nhttp://lifehacker.com/what-happens-when-you-remove-an-app-from-androids-mult-1179868228\r\nIn order to get notified when the app is swiped away, we need to implement a new event which is fired from [Service.onTaskRemoved()|http://developer.android.com/reference/android/app/Service.html#onTaskRemoved(android.content.Intent)].", "attachment": [], "flagged": false, "summary": "Android: Implement an event \"taskremoved\" when Service.onTaskRemoved() is called", "creator": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "271127", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4687\n\nFor FR:\n1. Run the test case below on 4.0+ devices and should see the log \"Hello World! I am a Service. I have this to say: Titanium rocks!\". \n2. Click the HOME button and then swipe the app away from the recent app list. Should see the log \"**************************** taskremoved fired\".\n\nTest case:\n----------------------- app.js -----------------------\n{code}\nvar intent = Titanium.Android.createServiceIntent( { url: 'service.js' } );\nintent.putExtra('message_to_echo', 'Titanium rocks!');\nTi.Android.startService(intent);\n{code}\n----------------------- service.js -----------------------\n{code}\nvar service = Titanium.Android.currentService;\nvar intent = service.intent;\nvar message = intent.getStringExtra(\"message_to_echo\");\n\nservice.addEventListener(\"taskremoved\", function(){\n\tTi.API.info(\"**************************** taskremoved fired\");\n});\n\nTitanium.API.info(\"Hello World! I am a Service. I have this to say: \" + message);\n{code}\n----------------------- tiapp.xml -----------------------\n{code}\n\n \n \n \n\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-13T22:23:08.000+0000", "updated": "2013-09-13T22:23:08.000+0000" }, { "id": "276103", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with:\r\n\r\nAppc-Studio: 3.2.0.201310181700\r\nSdk:3.2.0.v20131021142445\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.2.1), iPOD Touch1(v7.0)\r\nXcode: 5\r\n\r\n\r\nTaskremoved() working well on android.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T09:31:51.000+0000", "updated": "2013-10-22T09:31:51.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }