-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,392
  • 4
  • 16
  • 21

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,662
  • 17
  • 81
  • 129
  • 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,650
  • 20
  • 37
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
  • 16,006
  • 8
  • 81
  • 189
  • 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