Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14015] iOS: App being rejected in the App store because of the camera shutter is disabled by default

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionNeeds more info
Resolution Date2013-11-14T21:54:19.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelstriage
ReporterMauro Parra-Miranda
AssigneePedro Enrique
Created2013-05-29T03:53:52.000+0000
Updated2017-03-23T21:43:06.000+0000

Description

Problem Description

There is a complain about the app being rejected in the App store because of the camera shutter is disabled by default.

More info

I searched in the docs, and AFAIK, there is no way to disable the camera shutter sound. Relevant link: https://developer.appcelerator.com/question/152957/app-rejected-for-auto-disables-the-shutter-sound-of-the-camera-

Comments

  1. Pedro Enrique 2013-11-14

    Mauro, We'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? Reference: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Media-property-audioSessionMode
  2. Mauro Parra-Miranda 2013-11-14

    Pedro, according 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. Best, Mauro
  3. Pedro Enrique 2013-11-14

    If you could find out about this, that would be useful.
  4. Pedro Enrique 2013-11-14

    Mauro, I was only able to reprodce this with this scenario: 1) Start a Ti.Media.Sound 2) Change the Ti.Media.audioSessionMode to Ti.Media.AUDIO_SESSION_MODE_RECORD 3) Use the camera
       var win = Titanium.UI.createWindow({
           backgroundColor : '#ccc',
       });
       
       var btn = Ti.UI.createButton({
       	title: 'camera',
       	left: 20,
       	right: 20,
       	backgroundColor: 'white'
       });
       
       win.add(btn);
       
       var x = 0;
       var cricket = Ti.Media.createSound({
       	url: 'cricket.wav' // Get this from Kitchen Sink
       });
       btn.addEventListener("click", function(){
       	cricket.play();
       	Ti.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_RECORD;
       	showCamera();
       });
       
       win.open();
       
       function showCamera() {
       
       	var overlay = Ti.UI.createView({
       		opacity: 0.5,
       		backgroundColor: 'red'
       	});
       
       	var pic = Ti.UI.createButton({
       		title: 'take picture',
       		bottom: 0, left: 0
       	});
       	var hide = Ti.UI.createButton({
       		title: 'hide',
       		bottom: 0, right: 0
       	})
       	pic.addEventListener('click', function() {
       		Ti.Media.takePicture();
       	});
       	hide.addEventListener('click', function() {
       		Ti.Media.hideCamera();
       		cricket.stop();
       	});
       	overlay.add(pic, hide);
       
       	Ti.Media.showCamera({
       		success:function(event) {
       		},
       		cancel:function() {
        		},
       		error:function(error) {
        		},
               overlay:overlay,
               saveToPhotoGallery: false,
               allowEditing: false,
               showControls:false, 
               mediaTypes: Ti.Media.MEDIA_TYPE_PHOTO,
               autohide: false
       	});
       }
       
    Please let us know if the developer having this problem is using the Ti.Media.audioSessionMode API and/or the Ti.Media.Sound.
  5. Lee Morris 2017-03-23

    Closing ticket because the information that was requested was never provided.

JSON Source