{ "id": "115081", "key": "TIMOB-14015", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-11-14T21:54:19.000+0000", "created": "2013-05-29T03:53:52.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "triage" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T21:43:06.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\nThere is a complain about the app being rejected in the App store because of the camera shutter is disabled by default. \r\n\r\nh4. More info\r\nI searched in the docs, and AFAIK, there is no way to disable the camera shutter sound. \r\n\r\nRelevant link: \r\n\r\nhttps://developer.appcelerator.com/question/152957/app-rejected-for-auto-disables-the-shutter-sound-of-the-camera-\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: App being rejected in the App store because of the camera shutter is disabled by default", "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": "Mobile SDK 3.1.0.GA", "comment": { "comments": [ { "id": "279570", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Mauro,\n\nWe're not doing anything special here that would cause this rejection. Is the app setting the audio session to some value that would cause this?\nReference: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Media-property-audioSessionMode", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-14T18:20:05.000+0000", "updated": "2013-11-14T18:20:05.000+0000" }, { "id": "279573", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Pedro, \n\naccording to the customer's comment, he was using some of the media module, but nothing related to the camera. We don't have the customer's source code.\n\nBest,\n\nMauro \n\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-14T18:26:45.000+0000", "updated": "2013-11-14T18:26:45.000+0000" }, { "id": "279583", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "If you could find out about this, that would be useful.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-14T18:50:24.000+0000", "updated": "2013-11-14T18:50:24.000+0000" }, { "id": "279627", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Mauro,\r\n\r\nI was only able to reprodce this with this scenario:\r\n\r\n1) Start a Ti.Media.Sound\r\n2) Change the Ti.Media.audioSessionMode to Ti.Media.AUDIO_SESSION_MODE_RECORD\r\n3) Use the camera\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor : '#ccc',\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: 'camera',\r\n\tleft: 20,\r\n\tright: 20,\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nwin.add(btn);\r\n\r\nvar x = 0;\r\nvar cricket = Ti.Media.createSound({\r\n\turl: 'cricket.wav' // Get this from Kitchen Sink\r\n});\r\nbtn.addEventListener(\"click\", function(){\r\n\tcricket.play();\r\n\tTi.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_RECORD;\r\n\tshowCamera();\r\n});\r\n\r\nwin.open();\r\n\r\nfunction showCamera() {\r\n\r\n\tvar overlay = Ti.UI.createView({\r\n\t\topacity: 0.5,\r\n\t\tbackgroundColor: 'red'\r\n\t});\r\n\r\n\tvar pic = Ti.UI.createButton({\r\n\t\ttitle: 'take picture',\r\n\t\tbottom: 0, left: 0\r\n\t});\r\n\tvar hide = Ti.UI.createButton({\r\n\t\ttitle: 'hide',\r\n\t\tbottom: 0, right: 0\r\n\t})\r\n\tpic.addEventListener('click', function() {\r\n\t\tTi.Media.takePicture();\r\n\t});\r\n\thide.addEventListener('click', function() {\r\n\t\tTi.Media.hideCamera();\r\n\t\tcricket.stop();\r\n\t});\r\n\toverlay.add(pic, hide);\r\n\r\n\tTi.Media.showCamera({\r\n\t\tsuccess:function(event) {\r\n\t\t},\r\n\t\tcancel:function() {\r\n \t\t},\r\n\t\terror:function(error) {\r\n \t\t},\r\n overlay:overlay,\r\n saveToPhotoGallery: false,\r\n allowEditing: false,\r\n showControls:false, \r\n mediaTypes: Ti.Media.MEDIA_TYPE_PHOTO,\r\n autohide: false\r\n\t});\r\n}\r\n{code}\r\n\r\nPlease let us know if the developer having this problem is using the Ti.Media.audioSessionMode API and/or the Ti.Media.Sound.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-14T21:52:36.000+0000", "updated": "2013-11-14T21:55:36.000+0000" }, { "id": "415424", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket because the information that was requested was never provided.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T21:43:06.000+0000", "updated": "2017-03-23T21:43:06.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }