How to lock down user to Single App mode in iOS 6, Programmatically?

后端 未结 4 1048
借酒劲吻你
借酒劲吻你 2021-02-06 17:10

There are some question which are related to this,. but getting the exact answer:

Lock-down iPhone/iPod/iPad so it can only run one app

Recently iOS 6 is introdu

相关标签:
4条回答
  • 2021-02-06 17:34

    Hi may be I am late but I have a good news for you.

    Apple provide a new feature in IOS 7 and we can lock the user to single mode without user permission(Lock and unlock mode) here is the apple documentation link

    https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIAccessibilityRequestGuidedAccessSession

    the other way is to install the profile config profile like is

    http://ipadhire.co.nz/lockdown.mobileconfig

    it lock the home button of IPhone and enable single mode

    0 讨论(0)
  • 2021-02-06 17:44

    For this you have to do following..

    1. access apple's private api's
    2. access apple's private framework

    Apple don't encourage accessing there private api's specially when it comes for App Store, if you accessed the private api's at the time of application review on App Store they will reject the app giving you a message of "accessing a private api".

    0 讨论(0)
  • 2021-02-06 17:47

    The accepted answer to this question is no longer correct:

    Starting with iOS 7, UIKit exposes the function UIAccessibilityRequestGuidedAccessSession as public API.

    I don’t know, but can very well imagine that this function existed as private API dating back to iOS 6, where the guided access feature was introduced.

    Note that for this method to have any effect, the device in question must be supervised using MDM, and the ID of the app you want to use this API must be included in the device management profile deployed to it.

    0 讨论(0)
  • 2021-02-06 17:55

    The SureLock iOS app does nothing but inform the user how to do it in your system preferences.

    Doing it from the app itself is only possible, if you break the rules about private frameworks. And break it hard.

    I am sorry to tell you that the way you present your idea, would never be approved for the AppStore.

    0 讨论(0)
提交回复
热议问题