Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling home button on iPhone/iPad

Tags:

iphone

ipad

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.

like image 200
Ben Williams Avatar asked May 20 '10 02:05

Ben Williams


People also ask

Can you disable iPhone home button?

Go to Settings > Accessibility > Touch, then select AssistiveTouch to turn it off.

Can you disable home button?

Navigate to Android > Restrictions > Basic and click on Configure. Under Allow Device Functionality, you'll have the options to disable Home/Power button. Home Button-Uncheck this option to restrict users from using the Home Button.


1 Answers

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.

like image 97
kennytm Avatar answered Oct 02 '22 06:10

kennytm