{ "id": "141521", "key": "TIMOB-18192", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-12-15T22:48:13.000+0000", "created": "2014-12-12T09:42:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.0", "regression" ], "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": "2017-03-22T17:55:29.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": "This is a regression as it works fine on Titanium SDK 3.4.1\r\n\r\nHaving an alert message before the showCamera method does not allow the camera to open up.\r\n\r\nSteps to reproduce:\r\n1. Run the following:\r\n{code}\r\n// Containing window\r\nvar win = Ti.UI.createWindow({\r\n //navBarHidden: true,\r\n backgroundColor: \"#ffffff\",\r\n height: Ti.UI.FILL,\r\n width: Ti.UI.FILL\r\n});\r\n \r\n// Blue button that opens the camera\r\nvar open_camera = Ti.UI.createButton({\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE,\r\n bottom: 50,\r\n title: 'Camera'\r\n});\r\n// Adding the \"open camera\" button\r\nwin.add(open_camera);\r\n \r\n// Click event to show the camera\r\nopen_camera.addEventListener(\"click\", function(e){\r\n alert(\"Testing\");\r\n Ti.Media.showCamera({});\r\n});\r\n \r\n// Open the window\r\nwin.open();\r\n{code}\r\n2. Click on the button 'camera'\r\n\r\nActual Results:\r\n1. A white window with a button named 'camera' opens up\r\n2. An alert message that says 'Testing' comes up \r\n\r\nExpected Results:\r\n1. A white window with a button named 'camera' opens up\r\n2. An alert message that says 'Testing' pops up and camera also opens up.\r\n\r\nNote: if the alert message is defined after the show camera method as follows:\r\n{code}\r\n// Click event to show the camera\r\nopen_camera.addEventListener(\"click\", function(e){\r\n Ti.Media.showCamera({});\r\n alert(\"Testing\");\r\n});\r\n{code}\r\nthen the app works fine as expected; both the camera and the alert message comes up.", "attachment": [], "flagged": false, "summary": "iOS: having an alert before the show camera prevents the camera from opening up", "creator": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Appc-Studio: 3.4.1.201410281743 
\r\nTitanium SDK: 3.5.0.v20141211124115 \r\n
Titanium CLI: 3.4.1 \r\n
Alloy : 1.5.1 GA 
\r\nOS: Mac OSX 10.10 
\r\nXcode: 6.1 \r\n
Device: iPad Air 2 (iOS8.1)", "comment": { "comments": [ { "id": "336129", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm going to guess we need to revise test cases that involve Alert Dialogs as a result of the refactor there.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-12T10:24:19.000+0000", "updated": "2014-12-12T10:24:19.000+0000" }, { "id": "336452", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You could work around it by listening for the alert dialog dismissal and opening the camera.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-15T22:12:59.000+0000", "updated": "2014-12-15T22:12:59.000+0000" }, { "id": "336464", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is expected behavior on iOS8 with Alerts. We do not allow AlertDialog to present any ViewController. The only exception is the error controller which is only ever displayed in development mode and not in production applications. Going to resolve this as Won't Fix", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-15T22:48:02.000+0000", "updated": "2014-12-15T22:48:02.000+0000" }, { "id": "414823", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T17:55:29.000+0000", "updated": "2017-03-22T17:55:29.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }