iPad的导向访问/自助终端模式

时间:2014-03-19 08:26:16

标签: ios ipad

我需要构建一个ipad应用程序,当用户启动时,它会将iPad带入kiosk模式。这该怎么做??我完全被同意了。我经历了几个链接,但找不到合适的答案。请帮我??我不知道从哪里开始...... !!

在某处我读到我需要将移动配置文件包含在我的设备中:"

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>PayloadContent</key>
    <array>
        <dict>
            <key>PayloadDescription</key>
            <string>Disables the home button.</string>
            <key>PayloadDisplayName</key>
            <string>Home Button Lock</string>
            <key>PayloadIdentifier</key>
            <string>com.zchristopoulos.kiosk</string>
            <key>PayloadOrganization</key>
            <string>Zachary Christopoulos</string>
            <key>PayloadType</key>
            <string>com.apple.defaults.managed</string>
            <key>PayloadUUID</key>
            <string>B2D02E2D-BAC5-431B-8A29-4B91F71C9FC1</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
            <key>PayloadContent</key>
            <array>
                <dict>
                    <key>DefaultsDomainName</key>
                    <string>com.apple.springboard</string>
                    <key>DefaultsData</key>
                    <dict>
                    <key>SBStoreDemoAppLock</key>
                    <true/>
                    </dict>
                </dict>
            </array>
        </dict>
    </array>
    <key>PayloadDescription</key>
    <string>Disables Home Button</string>
    <key>PayloadDisplayName</key>
    <string>Home Button Lock</string>
    <key>PayloadIdentifier</key>
    <string>com.zchristopoulos.hbkill</string>
    <key>PayloadOrganization</key>
    <string>Zachary Christopoulos</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>614D1FE3-F80D-4643-AF6B-D10C4CC8737A</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
</plist>

怎么做?请帮忙.. !!

3 个答案:

答案 0 :(得分:4)

设备必须处于监督模式,并与MDM平台一起分发。使用此功能启用引导模式:

UIAccessibilityRequestGuidedAccessSession()

文档说:

  

使用UIAccessibilityRequestGuidedAccessSession()来请求此应用   被锁定或从单应用程序模式中释放。要求锁定   这个应用程序进入单一应用程序模式只有在设备是   受监督,应用程序的软件包标识符已列入白名单   使用移动设备管理。如果您成功请求单身   应用模式,您有责任通过平衡释放设备   这个电话。

您可以将Meraki用作MDM平台。免费 https://meraki.cisco.com/products/systems-manager

答案 1 :(得分:0)

这是一个反复出现的问题。你不能在你的应用程序中这样做,至少在没有越狱的设备上。

您可以使用iPhone配置实用程序实现此目的,但此解决方案仅适用于企业,并且不允许单个应用程序使用自动信息亭模式。

所以你最好的方法就是使用Guided Access。您可能还想查看此question and its answers

答案 2 :(得分:0)

我认为您要做的是从远程服务器加载plist,如果您信任,设备会询问该服务器。如果是这样,那么应用程序应该进入锁定模式(这就是SBStoreDemoAppLock的内容:在此处引用:http://www.zchristopoulos.com/2012/02/how-to-disable-ipad-home-button-kioskstore-demo-mode/和此处:http://rick-hawkins.blogspot.com/2012/01/turning-ipad-into-kiosk-device.html)。我相信@Toaster被越狱是错误的,因为你正在寻找使用配置。

此链接确实可以帮到您:https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010206-CH1-SW53

除此之外,如果您想尝试相对简单的配置,请尝试Apple的配置程序(在开发页面上链接)。

关于将其置于引导访问模式的解决方案需要注意的一点是,它会在重启设备时重置。 .plist解决方案应该保持,直到明确删除plist。