San*_*dke 6 mdm guided-access ios7
我使用Apple Configurator设置了少量设备作为监督设备.但是,我无法使用UIAccessibilityRequestGuidedAccessSession API 让应用程序成功进入单一应用程序模式.
我创建了一个配置文件,其中包含Meraki控制台中设置的限制,特别是我已将Meraki控制台中的"允许单一应用程序模式"字段设置为我的应用程序包ID.
我假设Meraki中的这个字段映射到autonomousSingleAppModePermittedAppIDs配置键.我添加了我的应用程序,这是一个IPA(未从应用程序商店安装)安装在受监督设备上.
配置文件和应用程序已在iPad上成功安装,但调用UIAccessibilityRequestGuidedAccessSession()仍然失败.
调用本身非常简单:
NSLog(@"requesting guided access");
UIAccessibilityRequestGuidedAccessSession(YES, ^(BOOL didSucceed) {
if (didSucceed) {
NSLog(@"entered guided access");
self.inGuidedSessionMode = YES;
[[[UIAlertView alloc] initWithTitle:@"entered single access mode" message:nil delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show];
}
else {
NSLog(@"failed to enter guided access");
[[[UIAlertView alloc] initWithTitle:@"Unable to enter single access mode" message:nil delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show];
}
});
Run Code Online (Sandbox Code Playgroud)
设备日志显示以下条目
Mar 26 11:42:31 BayLeaf-Kiosk-4 backboardd[28] <Error>: HID: The 'Passive' connection 'xxxxxx' access to protected services is denied.
Mar 26 11:42:31 BayLeaf-Kiosk-4 xxxxxx[412] <Warning>: requesting guided access
Mar 26 11:42:31 BayLeaf-Kiosk-4 xxxxxx[412] <Warning>: viewDidLoad got called
Mar 26 11:42:31 BayLeaf-Kiosk-4 xxxxxx[412] <Warning>: applicationDidBecomeActive called
Mar 26 11:42:31 BayLeaf-Kiosk-4 xxxxxx[412] <Warning>: failed to enter guided access
Mar 26 11:42:31 BayLeaf-Kiosk-4 backboardd[28] <Error>: HID: The 'Rate Controlled' connection 'xxxxxx' access to protected services is denied.
Run Code Online (Sandbox Code Playgroud)
有没有人能够成功让他们的应用程序进入导向访问?我唯一能想到的是我的应用程序不在appstore中或者指定的包ID不正确,但我找不到导出Meraki创建的.mobileconfig以验证它与我的应用程序匹配的方法.
真的在我的智慧结束这个...我想也许Microsoft Surface(也有一个链接到帐户的单一应用程序模式)可能只是更容易做的事情.
非常感谢任何帮助.谢谢!
PS:通过@zeiteisen 链接这个回复,这对我说到这一点非常有帮助.
更新:我很确定捆绑ID是正确的,如果我使用我的应用名称/捆绑ID作为相同配置文件中单个应用模式设置的值,我的应用立即进入单一应用模式(这不是我的想要,我希望它以编程方式进入/退出单个应用程序模式而不是被锁定.
更新2:目前还不清楚是什么具体的变化解决了这个问题,我只是从Meraki中删除了应用程序,删除了我的配置文件,将它们添加回来,一旦配置文件和应用程序被Meraki推送,它就运行了.
小智 0
确保您的配置文件如下所示并且应该可以正常工作:
<key>autonomousSingleAppModePermittedAppIDs</key>
<array>
<string>org.mycompany.myapp</string>
</array>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3946 次 |
| 最近记录: |