Using autonomousSingleAppModePermittedAppIDs and UIAccessibilityRequestGuidedAccessSession together with Meraki as MDM to enter single app mode

风格不统一 提交于 2019-11-30 14:18:32

Also -- I've learnt this the trial-and-error way -- if you try locking in the app on viewDidLoad or viewWillAppear/viewDidAppear, it's not going to work. I see from your logs that you're trying to lock the app in viewDidLoad. Try using a timer instead, maybe that's your problem.

[self performSelector:@selector(handleLockButton:) withObject:nil afterDelay:1];

Of course, you need your bundle ID to be on the whitelist of apps that can lock themselves into guided access.

Happy coding :)

Z.

make sure your configuration profile looks like this and it should work fine:

<key>autonomousSingleAppModePermittedAppIDs</key>
<array>
    <string>org.mycompany.myapp</string>
</array>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!