0

How do you disable the user from turning the phone on silent? (switching the switch on the top left of the phone?)

I want my app to always play sound no matter what the state of that switch is. Is this possible?

Thanks in advance...

Adam Waite
  • 19,175
  • 22
  • 126
  • 148

2 Answers2

2

Please search stackoverflow or the web for similar questions before posting a new one, this question has already been covered:

Play sound on iPhone even in silent mode

iphone, how to play sound even in silent or mute mode?

Be careful about overriding the silent mode switch and playing audio. Apple may not like you doing this, depending on the context; if they don't like it, you will fail app review. Is there a good reason to play audio when in silent mode in the context of your app?

Community
  • 1
  • 1
occulus
  • 16,959
  • 6
  • 53
  • 76
0

Here’s what I have done that works great!

Set all your contacts Emergency By Pass OFF! Then decide who should break through by turning the Emergency By Pass ON to those important calls you simply can’t miss; Family members like Mom and Dad.

Now your all set to use he Silent switch.

  • Welcome to Stack Overflow. I believe that the person asking the question is asking how to prevent an end-user from disabling silent mode/how to ignore the state of the silent mode switch using a code approach. This way, the application has the intended effect on all devices regardless of the end user's personal settings. Your answer is from the perspective of the end user, not the programmer. – Andrew Fan Oct 14 '19 at 18:10