Override mute switch?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Override mute switch?

Post by teacherguy » Sat Jan 05, 2019 10:45 pm

Is there a way to override the mute switch (on iPhone) or setting (on iPad)?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Override mute switch?

Post by richmond62 » Mon Jan 07, 2019 10:20 am

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).

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Override mute switch?

Post by teacherguy » Tue Jan 08, 2019 1:56 pm

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.

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Override mute switch?

Post by teacherguy » Tue Jan 08, 2019 2:14 pm

...or is there at least a way to determine if the mute switch is engaged?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Override mute switch?

Post by richmond62 » Tue Jan 08, 2019 7:16 pm

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?

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Override mute switch?

Post by teacherguy » Sat Feb 09, 2019 5:48 pm

For those who may have an interest, I found the answer in the Dictionary. Search for iphoneSetAudioCategory

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Override mute switch?

Post by [-hh] » Sat Feb 09, 2019 9:15 pm

Increasing the system volume settings without user interaction is a trial to do bodily harm and should be punished.
shiftLock happens

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Override mute switch?

Post by teacherguy » Sun Feb 10, 2019 1:33 am

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. :)

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Override mute switch?

Post by [-hh] » Sun Feb 10, 2019 4:28 am

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)."
shiftLock happens

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Override mute switch?

Post by richmond62 » Sun Feb 10, 2019 10:58 am

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.

bwmilby
Posts: 438
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: Override mute switch?

Post by bwmilby » Mon Feb 11, 2019 5:09 pm

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.
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Override mute switch?

Post by teacherguy » Mon Feb 11, 2019 6:30 pm

Exactly right.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Override mute switch?

Post by richmond62 » Mon Feb 11, 2019 6:52 pm

So . . . can you tell us the 'why' ?

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Override mute switch?

Post by bogs » Mon Feb 11, 2019 7:10 pm

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).
Image

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Override mute switch?

Post by teacherguy » Mon Feb 11, 2019 7:37 pm

https://developer.apple.com/design/huma ... ion/audio/

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

Post Reply

Return to “iOS Deployment”