Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically powering off an iPhone?

Is it possible to programmatically power off an iPhone or does Apple disallow this?

If Apple disallows this, is it possible to programmatically mute the sound on an iPhone?

like image 636
TonyNeallon Avatar asked Oct 23 '09 14:10

TonyNeallon


2 Answers

The iPhone applications you create with the official SDK are sandboxes in and of themselves. Walled off sandboxes with barbed wire.

You won't be able to turn off the power. And muting sounds other than your own applications' sounds amounts to being able to turn off the iPod playback.

like image 187
Hans Sjunnesson Avatar answered Oct 05 '22 23:10

Hans Sjunnesson


I don't have any evidence for that, but this would involve modifying the "UserExperience" - which is something that Apple never would allow (and why still many people jailbreak their phones).

And this involves "power off" as well as "mute sound" - because both could destroy the UX (you wait for an important call, but application X broke the sound).

like image 31
Marcel Jackwerth Avatar answered Oct 05 '22 23:10

Marcel Jackwerth