{ "id": "84173", "key": "TIMOB-6830", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-12-22T16:23:12.000+0000", "created": "2011-12-21T14:26:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:09:38.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. PROBLEM DESCRIPTION\r\nCustomer wants to have a function that keeps the track of the last touch event related to UI, so they can run a custom function when that happens. This is needed in order to run a logout function in the app, in case of the app not being used by certain period of time.\r\n\r\nh4. EXTRA INFO \r\nThis function is something that can be used by many of our enterprise customers having similar issues.\r\n\r\nh4. WORKAROUND\r\nThe suggested workaround to the customer was to keep a var in the Ti.App.Properties with the date/time of the last event related to UI. They understand the workaround, but they want this kind of general tracking handed by ourselves. ", "attachment": [], "flagged": false, "summary": "iOS: Create a function to keep the date-time of the last activity on the events", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": null, "comment": { "comments": [ { "id": "177079", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After some cross-platform discussion, we've determined that this information is unnecessary to be part of an event. After all, it's always possible to do this:\r\n\r\n{code}\r\nproxy.addEventListener('whatever', function() {\r\n var timestamp = new Date();\r\n // ... your application logic here ...\r\n});\r\n{code}\r\n\r\nTimestamping is not a feature of enough general use to be made available as an intrinsic property on all events. A use case would need to be provided to prove otherwise; as the ticket is described, getting the current timestamp and caching it (to disk, on global scope, in a DB, etc.) is an acceptable solution.\r\n\r\nThe more relevant problem is the lack of the availability of true global scoping on iOS, which will be resolved with the introduction of single-context evaluation.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-22T16:23:12.000+0000", "updated": "2011-12-22T16:23:12.000+0000" }, { "id": "410925", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:09:38.000+0000", "updated": "2017-03-09T23:09:38.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }