I'm making an application that needs users' complete attention till a specified target is achieved. before achieving the target, if a user tries to press 'home' button it should be disabled, or like 'kiosk mode' in ios6. I just needed to be done programmatically while start the application, dont like to do anything by manually changing in settings menu in iPhone/iPad After completion of target in my application, home button should be enabled. The application is targeted for enterprise. So no need for app store approval. How to do this? thanks in advance.
Edit: I read about "mobile configuration plist". That needed to reboot the device. But I dont like to reboot the device. Once when my application is started it should take care of everything(programmatically). I dont want the users/supervisor intervention in this. Just want to disable home button like in 'Guided access' but with programmatically inside my app. Is there any private api available from 'Guided Access' to disable the home button?
Note: Not for a Jail broken device. Targeted for enterprise licensed app.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…