Lock iOS app in single app mode programmatically

前端 未结 3 1729
说谎
说谎 2020-12-08 05:01

Note : I don\'t want to submit this app to app store.

What i want to achieve :

I want simple app with one view having two b

3条回答
  •  遥遥无期
    2020-12-08 05:56

    Just wanted to write on this even though this is old as i needed to implement a similar solution and i got it working. The steps for me as follows and a note here is that this involves MDM and other specific steps.

    My requirement was as follows. Each of the iPad at different locations has a set of apps installed.For ease of it lets assume each Dept. has their own apps. Participants open a app related to their dept. to take a test, the APP automatically Locks the iPad to single-app Mode and at the end of the test, it will unlock it self.

    1. Supervise the iPad/iphone using the Apple Configurator.
    2. Install the MDM related files ( Each MDM has its own set of instructions, usually involves downloading a profile).
    3. Every MDM has a option of Single APP Mode or MultipleAppMode. Select the second option and add the app IDs to the list. (A single APP mode works pretty well with MDM's but i did not want the app to be locked to a single APP all the time).
    4. I used the UIAccessibilityRequestGuidedAccessSession api to lock unlock the device from single app mode.

    http://bobxcode.blogspot.com/2015/12/programmatically-implement-single-app.html

    Thanks, Bob

提交回复
热议问题