tags:

views:

1393

answers:

5

First of all, I'm completely aware that doing this will get my app rejected by Apple, that it's a poor user experience, and so on.

My question is fairly simple, is there a way using private APIs to disable the home button? The aim is to effectively put an iPad into kiosk mode.

A: 

If it's going to be in a kiosk of some sort, can you just put a metal plate over it, and mount the thing tightly enough so that it can't reasonably be pressed?

dash-tom-bang
I guess it's a last-ditch option, but would be much more preferable to do it programmatically. I suppose, we could always put glue in the home button as well :)
alku83
Yeah that was actually my first thought. Depending on how permanent you want it, you could also glue a strip of something over it.
dash-tom-bang
+2  A: 

You can't disable the menu button. This is handled by the SpringBoard which you cannot control unless the device is jailbroken.

You can relaunch the app immediately after the user quit, however. Assuming you have registered the kioskRelaunch112084 URL scheme:

-(void)applicationWillTerminate:(UIApplication *)application {
    [application openURL:[NSURL URLWithString:@"kioskRelaunch112084://"]];
}

Note that the user can still force-quit the app.

KennyTM
Thanks. If I've got this correct, the URL is just one that you made up. So, I just need to register my app to handle URLs of that type, or whatever type I choose?
alku83
@alku83: Whatever you choose.
KennyTM
It looks like this solution is no longer functional in IOS 4. The application object doesn't seem to respond to openURL in any of the going-out-of-focus callbacks, nor in background tasks after the app had closed.
JoshRivers
A: 

here's a thread related to it:

http://forums.macrumors.com/showthread.php?t=931043

Cody
A: 

Can we put a password prompt on the button?

Jay
The answers section is not the place to ask new questions. You'd be better off asking a new question. Though I'm quite certain the answer to your question is No.
alku83
A: 

Our new STAYPad iPad security enclosure will let you create an iPad kiosk system quickly.

Our Model K2.0 hides and protects the HOME button.

All metal construction, the STAYPad can then be attached to a wall or cabinet, or can be secured with a cable.

Silly name. But it will protect your iPad from theft.

http://www.staypad.com

GaryD214