1

I know how to implement guided access mode manually from the settings app. I have a requirement to lock ios device to one app. So for example parent can lock his child to one app in iphone device so he can not use any other apps in his device.

I have to implement this functionality programmatically? Do any one know how to install configuration profile and mdm profile programmatically so after doing this we will only have to write just one line of code

UIAccessibilityRequestGuidedAccessSession(true) { success in
    print("Request guided access success \(success)")
}

to enable guided access mode. Any one have any idea to implement that type of functionality please tell me? Thanks

Ahmad F
  • 30,560
  • 17
  • 97
  • 143
Adil Anwer
  • 11
  • 2
  • You can't install an MDM profile "programatically". The user needs to install a management profile from a web site. You need MDM software (either purchase or write) to create the profile. – Paulw11 Sep 11 '18 at 09:56

1 Answers1

0

I explored this problem earlier and found that guided access can not be achieved via programming rather we can set Kiosk Mode of an iOS device.

In kiosk mode, iOS device will have only 1 app, and this app will be the default interface of the iOS device. No any other apps can be installed, It will be like Supervised Mode Enabled device.

For more details:

Why-Kiosk-Mode-is-Better?

Some-More-Details

Ankit Jayaswal
  • 5,549
  • 3
  • 16
  • 36
  • but this is using the same thing MDM profile using MobileLock software how can we implement that product our selves please answer on it. – Adil Anwer Sep 11 '18 at 08:51
  • It is not necessary @AdilAnwer, In 1st link I just shared, it is explained how you can set kiosk mode for your iOS device. MDM profile needed if you wish to get more configuration. – Ankit Jayaswal Sep 11 '18 at 08:55