{ "id": "143773", "key": "TIMOB-18481", "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": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-02-17T19:21:07.000+0000", "created": "2015-01-30T15:11:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-4.0.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-03-05T23:23:50.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 have a delay on an alert, with persistent set to true, you will experience a weird glitch when waiting for the alert and you pull down the phone notification window. The alert will appear behind the notification window, when you close the notification window, the alert will disappear. This doesn't happen with iOS 8.x\r\n\r\nh4. Steps to reproduce\r\n1. Create a new mobile project Classic Titanium\r\n2. Paste this code into app.js: \r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\r\n\r\n\r\nvar dateBaseView = Titanium.UI.createView({\r\n\twidth : \"80dip\",\r\n\theight : \"40dip\",\r\n\tbackgroundColor : 'green'\r\n});\r\ndateBaseView.addEventListener(\"click\", showDatePicker);\r\n\r\nwin.add(dateBaseView);\r\n\r\nfunction showDatePicker() {\r\n\tsetTimeout(function() {\r\n\t\tvar dialog = Titanium.UI.createAlertDialog({\r\n\t\t\ttitle : \"Test Bug\",\r\n\t\t\tmessage : \"Testing\",\r\n\t\t\tpersistent : true,\r\n\t\t\tbuttonNames : [\"OK\"]\r\n\t\t});\r\n\t\tdialog.show();\r\n\t}, 4000);\r\n}\r\nwin.open();\r\n{code}\r\n3. Run it in iOS 7 (either device or sim).\r\n4. Click on the green square\r\n5. Drop down the phone notification window from the top of the screen.\r\n6. wait until the alert appears behind the current window.\r\n7. Close the Window\r\n8. You will see the alert dissapear. \r\n\r\nh4. Extra info\r\nThis doesn't happen with iOS8. \r\n\r\nThere is alternative ways to reproduce this, as well:\r\n\r\n1. open app and tap on the green view. \r\n2. wait for the alert to appear. \r\n2. Double tap device home button immediately to go the recent running apps view. \r\n3. tap the app from recent running apps list to make it foreground again. \r\n\r\nThe issue appears. \r\n\r\nLooks like something to do with the way iOS 7 handles window stack.\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Alert dialog issue with persistent set to true", "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": "Mac OS X 10.9.5\r\niOS 7.x\r\nMobile SDK 3.5.0.GA", "closedSprints": [ { "id": 345, "state": "closed", "name": "2015 Sprint 04 SDK", "startDate": "2015-02-14T01:00:53.297Z", "endDate": "2015-03-01T01:00:00.000Z", "completeDate": "2015-02-28T15:39:43.652Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "343539", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster- https://github.com/appcelerator/titanium_mobile/pull/6644", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-02-17T16:02:07.000+0000", "updated": "2015-02-17T16:02:07.000+0000" }, { "id": "345223", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nTitanium SDK 4.0.0.v20150303161012\r\nStudio 4.0.0.201502171827\r\nCLI 3.4.2-rc4\r\nXcode 6.2b5\r\n\r\nAlert is not dismissed when closing notification center, as expected.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-05T23:23:50.000+0000", "updated": "2015-03-05T23:23:50.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }