Setting iphone to vibrate and setting iphone back to sound via app
Solution 1
Think of this from the user perspective - that silent switch is there for a reason. If I want the phone silent, I will move that switch myself. Not only will the API not let you do this, it's simply a bad idea.
Solution 2
Check out the following app:
http://iphonepackers.info/autosilent/
Looks like they've found a way to do it, so it's likely possible. The problem with the "Auto Silent" app is that it's not available from the App Store. It only works on a jailbroken phone, installed with Cydia. I have yet to find an app on the Appstore that does something similar.
Apple's current design is terrible. Many applications choose to override the silent switch, including Apple's own Timer (Clock app), Alarm (Clock app), iPod and YouTube. While this was likely intentional, 3rd party applications can choose which volume control to use and thus don't respond to the physical silent switch consistently. More info:
http://txfx.net/2008/07/15/iphone-silent-switch-is-ignored-by-many-applications/
Many people have said they'd prefer to have a blackberry interface where you can quickly select from multiple user-customizable profiles.
For non-developers who found this thread, in hopes of finding a solution, consider the following physical device (it's a custom form factor headphone jack that can plug into the phone or charging base, nullifying sounds like mail/sms/etc):
http://www.thesilentnight.com/
Regards.
Cadu
Updated on June 05, 2022Comments
-
Cadu almost 2 years
Folks, I need your knowledge here.
Think about the following sittuation - my app need to set my iphone to vibrate mode on a certain time and get it back to playing sounds mode (for call receiving, sms, email, all common sound notifications) some minutes later.
I've already googled that, and didn't find a good, apple accetable way of doing that:
Programmatically opening the settings app (iPhone)
Is it possible to dynamically alter an iphone app's settings page in the settings app?
Display iphone application settings within your application
How do I launch my settings bundle from my application? [This one here is interesting, as fas I as find a way to know what is the key for the settings I'm interested in]
How do I launch my settings bundle from my application? [It mentions I can do that, but does not give an idea of how =(]
Is it possible to dynamically alter an iphone app's settings page in the settings app? [If this is true, I wouldn't be able to do what I want...]
Does anyone there has an idea of how do I do that via app? Many thanks in advance.