如何在 iPhone 上以编程方式启用引导式访问(自助服务终端模式)? [英] How can I programmatically enable Guided Access (Kiosk mode) on an iPhone?

查看:15
本文介绍了如何在 iPhone 上以编程方式启用引导式访问(自助服务终端模式)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

如何在 iPhone 上自动化引导式访问模式?我需要自动启用和删除此功能

背景来自爱荷华州的这个应用程序 使用 iOS 应用程序显示您的驾驶执照.问题是,将您的手机交给当局后,他们可以完全访问该设备.

如果我有此应用程序或类似应用程序的源代码,我如何在退出临时信息亭模式"时要求输入密码,从而无法从手机或手机获取照片、电子邮件或短信(理想情况下)来自 USB.

我发现了类似的Android 解决方案,但我现在正在寻找 iOS 解决方案

解决方案

您可以从应用程序内进入和退出引导式访问模式.但是,要做到这一点,设备必须受到监督,并安装了 MDM 配置文件,该配置文件在可以请求引导访问模式的应用程序列表中具有应用程序的捆绑 ID(关键是 autonomousSingleAppModePermittedAppIDs.>

完成后,要进入引导式访问,请执行以下操作:

UIAccessibility.requestGuidedAccessSession(true){成功print("请求引导访问成功(success)")}

Question

How do I automate Guided Access mode on an iPhone? I will need to automate the enabling and removal of this feature

Background This application from the State of Iowa uses an iOS app to display your drivers license. The issue is that after handing your phone over to authorities, they have full access to the device.

If I have the source code to this, or a similar application, how can I require a password when switching out of temporary "Kiosk mode", so that photos, emails or text messages are not available from either the phone, or (ideally) from USB.

I found this similar solution for Android, but am now looking for an iOS solution

解决方案

You can enter and exit guided access mode from within your app. However, to do so the device has to be supervised, and have an MDM profile installed that has the app's bundle ID in the list of applications that can request guided access mode (the key is autonomousSingleAppModePermittedAppIDs.

Once that is done, to enter guided access you do this:

UIAccessibility.requestGuidedAccessSession(true){
    success in
    print("Request guided access success (success)")
}

这篇关于如何在 iPhone 上以编程方式启用引导式访问(自助服务终端模式)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆