Page 1 of 2

Override mute switch?

Posted: Sat Jan 05, 2019 10:45 pm
by teacherguy
Is there a way to override the mute switch (on iPhone) or setting (on iPad)?

Re: Override mute switch?

Posted: Mon Jan 07, 2019 10:20 am
by richmond62
I'd be pretty "Effed-Off" if someone over-rid my mute switch.

On my Android phone I set the sound to mute
for a reason (I don't want my son in Philadelphia
waking me up at what is 3 am in the morning in Bulgaria,
but I do want to read his messages later, over breakfast).

Re: Override mute switch?

Posted: Tue Jan 08, 2019 1:56 pm
by teacherguy
Yes, fair enough. But this is clearly possible in Xcode. I am able to hear audio from iTunes, Youtube, etc. all the time on my iPhone with the mute switch engaged. The mute switch stops notification sounds and the ringer.

Re: Override mute switch?

Posted: Tue Jan 08, 2019 2:14 pm
by teacherguy
...or is there at least a way to determine if the mute switch is engaged?

Re: Override mute switch?

Posted: Tue Jan 08, 2019 7:16 pm
by richmond62
The mute switch stops notification sounds and the ringer.
BUT, as you stated, it lets through iTunes music . . .

So, at the risk of teaching my Granny to suck eggs; have you made a dead-simple standalone
that plays one short tune for iOS and run it on iOS to see if the mute blocks it or not?

Re: Override mute switch?

Posted: Sat Feb 09, 2019 5:48 pm
by teacherguy
For those who may have an interest, I found the answer in the Dictionary. Search for iphoneSetAudioCategory

Re: Override mute switch?

Posted: Sat Feb 09, 2019 9:15 pm
by [-hh]
Increasing the system volume settings without user interaction is a trial to do bodily harm and should be punished.

Re: Override mute switch?

Posted: Sun Feb 10, 2019 1:33 am
by teacherguy
Not going to get into the philosophy of this. After fielding email after email about "I'm not getting any sound" and telling people to turn off their mute switch, only to get replies stating "I don't have to do that for any other apps" I am making the change. To each their own. :)

Re: Override mute switch?

Posted: Sun Feb 10, 2019 4:28 am
by [-hh]
You could fire a dialog instead of overriding or add a note at top that sound should be unmuted.
The philosophy is "If some developers are idiots (overriding mute for all if they have some simple minded users) you don't have to be an idiot too (overriding mute for all if you have some simple minded users)."

Re: Override mute switch?

Posted: Sun Feb 10, 2019 10:58 am
by richmond62
In Britain the "enlightened" government have banned carrying pocket knives
because a few idiots use them for stabbing people.

This means that when I am staying with my Mother I cannot nip up the road
for a bag of sweets (as one does when working extensively in the garden)
without first remembering to leave my pruning knife in the garden shed.

Now, for some odd reason, ever since I bought my first pen-knife when I was
7 (Britain was different then), the only human I have ever caused any harm to was myself
(with the inevitable sliced thumb about 15 minutes after I bought the knife . . . this type
of cut is termed a "necessary life-learning cut").

There's some connexion between this and removing an individual's control over their volume
control on an iOS device, but I cannot remember what it is. I've got an iPad model 1 that
my son got given at some weird sports conference in Qatar: it sits and looks at me grumpily
from the "old techo-crap" shelf.

Re: Override mute switch?

Posted: Mon Feb 11, 2019 5:09 pm
by bwmilby
What is missing from this thread is the “why”...
In a media app, pressing play should emit sound regardless of the mute switch. The mute switch should govern notifications and non-requested audio though (like the ringer).
Do not disturb is another setting on iOS and I’m not sure how LC handles that.

Re: Override mute switch?

Posted: Mon Feb 11, 2019 6:30 pm
by teacherguy
Exactly right.

Re: Override mute switch?

Posted: Mon Feb 11, 2019 6:52 pm
by richmond62
So . . . can you tell us the 'why' ?

Re: Override mute switch?

Posted: Mon Feb 11, 2019 7:10 pm
by bogs
He did ~
bwmilby wrote:
Mon Feb 11, 2019 5:09 pm
In a media app, pressing play should emit sound regardless of the mute switch. The mute switch should govern notifications and non-requested audio though (like the ringer).

Re: Override mute switch?

Posted: Mon Feb 11, 2019 7:37 pm
by teacherguy
https://developer.apple.com/design/huma ... ion/audio/

Apple's guidelines about when users expect to hear audio in relation to the mute switch.