3 Replies
      Latest reply: Nov 10, 2016 12:10 PM by Beast RSS
      Nubi Level 1 Level 1 (0 points)

        I am very new to the iOS app develeping community and the life of programming in general so there are many "impossible" or "restricted"  areas that I have in my head but this question for might steer myself to making something great. The answers that I found out through the web showed me nothing besides people only saying "You can't do that". Also reading the developers agreement I am aware that I can not allow to temper with the iOS security solution, but only if you have a written permission by Apple. Upon reading that, my question is can the Home Button on an iPhone be blocked TEMPORARILY through the choice of the user by a set time duration in Xcode?

        • Re: Allow Home Button block for time duration
          eskimo Apple Staff Apple Staff (6,470 points)

          Upon reading that, my question is can the Home Button on an iPhone be blocked TEMPORARILY through the choice of the user by a set time duration in Xcode?

          Yes, and no.  iOS supports three different modes with restrictions on the Home button:

          • Users can enable Guided Access, which locks the device into a specific app.

          • System admins can restrict the device to running a single app via the App Lock payload.  This requires the device to be supervised.

          • System admins and app developers can cooperate to set up Autonomous Single App Mode.  Specifically:

            • The system admin lists the app in the autonomousSingleAppModePermittedAppIDs list set via the Restrictions Payload.

            • The app developer enables and disables single app mode by calling UIAccessibilityRequestGuidedAccessSession.

            This also requires the device to be supervised.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"

            • Re: Allow Home Button block for time duration
              Nubi Level 1 Level 1 (0 points)

              So the only way that the Home Button on the iPhone can be disabled in duration is if the device is supervised or with guided learning? Is it possible for the app itself to disable the Home Button? Without any use of MDM servers or supervision? If not, then is the answer the same about having an app disable the activation of other apps for a time duration?