{ "id": "92489", "key": "TIMOB-9298", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13407", "description": "Sprint 2012-11 API", "name": "Sprint 2012-11 API", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-30T21:43:41.000+0000", "created": "2012-05-29T13:45:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-06T22:29:37.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 needs to have a way to detect if the device was restarted (since will require the user to input the password again). We have been thinking that we can get the current time when putting the app to pause (pt), then getting it again on resume event (rt), and if:\r\n\r\nrt-pt < uptime\r\n\r\nthen the device was restarted. \r\n\r\nh4. Extra info\r\nUptime function is not provided as default, but can be emulated with this:\r\n\r\nhttps://github.com/pfeilbr/ios-system-uptime", "attachment": [ { "id": "28063", "filename": "com.appcelerator.time-iphone-0.1.zip", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T21:41:10.000+0000", "size": 20811, "mimeType": "application/zip" }, { "id": "28064", "filename": "TimeModule.zip", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T21:41:10.000+0000", "size": 153496, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Getting uptime value", "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": "196407", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "By the way, iOS provides uptime in an easy manner as of iOS 4.0: +[NSProcessInfo systemUptime]. This should be done in an external module, as there is nothing that requires a change to Titanium core nor other aspects of API to implement.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-29T18:09:48.000+0000", "updated": "2012-05-29T18:09:48.000+0000" }, { "id": "196665", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sample module that should suffice.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T21:41:10.000+0000", "updated": "2012-05-30T21:41:10.000+0000" }, { "id": "196666", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sample module provided for the PS team to take over.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T21:43:41.000+0000", "updated": "2012-05-30T21:43:41.000+0000" }, { "id": "409409", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-06T22:29:37.000+0000", "updated": "2017-03-06T22:29:37.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }