{ "id": "99342", "key": "TIMOB-10475", "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": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2012-09-11T22:14:35.000+0000", "created": "2012-08-16T14:11:03.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:46:44.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\nWhen you are in an app, and you press the lock button (hardware top right button) and then unlock, the app is not throwing the resume event. \r\n\r\nh4. Actual results\r\nThe app doesn't throw the resume event after unlocking the screen.\r\n\r\nh4. Expected results\r\nAfter unlocking the screen, the resume event should be thrown (as happens with iphone).\r\n\r\nh4. Testcase\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor:'white',\r\n title:'Window1'\r\n });\r\nTi.App.addEventListener('resume', function(event) \r\n{ \r\n alert('resume')\r\n});\r\n\r\nwin1.open();\r\n{code}\r\n\r\n1. Create a new mobile project\r\n2. Paste the code in the app.js\r\n3. Install this in an ipad 2 with iOS 4.x\r\n4. Launch the app.\r\n5. Lock the app using the right top hardware button.\r\n6. Unlock it.\r\n7. the alert should appear. \r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: resume event it's not fired after unlocking the ipad 2.", "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": "Titanium SDK version: 2.1.1.GA, 2.2.0.20120815 \r\nPlatform & version: iOS 4.x\r\nDevice Details: iPad 2 \r\nHost Operating System: OSX 10.7.3 \r\nTitanium Studio version: 2.1.1", "comment": { "comments": [ { "id": "217555", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Mauro\r\n This is a behavioral change by Apple. Up untill iOS 4.X when the Sleep/Wake Button of iDevice is pressed while the app is in the foreground, it only resulted in the firing of pause event and when returning it would only fire the resumed event subsequently. Apple decided to change this since iOS 5.0 to actually make the app inactive and thus fire both pause and paused when the user hits the sleep/wake button while in foreground. \r\n\r\nThere are many apple forums threads discussing this issue, but Apple seems to have made this intentionally to preserve the battery. Since this is a newly introduced activity in iOS 5.0 , there is nothing that we can do about it. \r\n\r\nI have made a [doc PR|https://github.com/appcelerator/titanium_mobile/pull/2868] to clearly show what events would be fired and its order. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-04T17:35:44.000+0000", "updated": "2012-09-04T17:35:44.000+0000" }, { "id": "217844", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Shak,\r\n Just tested with iPhone 4.3,iPad4.3, iPhone 5.0 , iPad 5.1\r\nThe ***change*** was **not** device specific, it was between iOS 4.X and 5.0\r\n\r\nIn iOS 4.X (iphone/iPad) sleep/wake button fires - pause while going to background and resumed when waking up.\r\nIn iOS 5.0+ (iphone/iPad) sleep/wake button fires- pause followed by paused before becoming inactive and fires resume followed by resumed when waking up. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-06T11:44:00.000+0000", "updated": "2012-09-06T11:44:00.000+0000" }, { "id": "411115", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as it is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:46:44.000+0000", "updated": "2017-03-09T23:46:44.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }