-2

Possible Duplicate:
Mute/Silence an iOS device programmatically?

Is it possible to turn off the silent mode of an iPhone programmatically? I need the option to turn on and mostly off the silent mode, without using the hardware.

Community
  • 1
  • 1
whiteberryapps
  • 1,372
  • 4
  • 15
  • 20

3 Answers3

5

From developer.apple

Global system volume, including your application's volume, is handled by iPhone OS and is not accessible by applications.

Siddiqui
  • 7,392
  • 15
  • 73
  • 128
  • 1
    HOW? There is an app called 'AutoSilent' that put the phone in Silent mode for a specific time and than send it back to Normal mode. How? – ytpm Aug 07 '13 at 12:22
0

No, on iPhone it only on hardware button.

codetiger
  • 2,579
  • 17
  • 33
0

If it were possible, the device would en up in an inconsistent state: the hardware silent-mode button turned on, but in software silent mode is turned off. In short, user experience hell.

Nicolas Miari
  • 15,576
  • 7
  • 76
  • 177
  • correct you are. but do you know a way to track whether the phone is in silent mode or not programmatically in swift? – Jamshed Alam Nov 04 '21 at 10:19