检查是否在iOS上安装了配置配置文件 [英] Check if a configuration profile is installed on iOS

查看:456
本文介绍了检查是否在iOS上安装了配置配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试检查.mobileconfig文件是否安装在iOS设备上。我尝试过此链接描述的方法 http://blog.markhorgan.com/?p= 701 ,但我失败了。也许有人有其他想法或什么...?提前感谢。

I'm trying to check if .mobileconfig file installed on the iOS device. I've tried an approach which described by this link http://blog.markhorgan.com/?p=701, but I'm fail with it. Maybe someone have other ideas or whatever ... ? Thank in advance.

推荐答案

为什么需要知道设备上是否安装了配置文件?苹果不提供API来检查是否安装配置配置文件,因为这将是应用程序的隐私侵入到用户的设置(除非配置配置文件是由应用程序安装,通常通过特定的API,如网络扩展)。如果您是IT管理员尝试保留设备配置,并希望仔细检查他们是否符合规定,您应该使用MDM或Apple Configurator。

Why do you need to know if a configuration profile is installed on the device? Apple doesn't provide API to check if configuration profiles are installed as it would be a privacy invasion of the app into the user's setup (unless the configuration profile was installed by the app, which is usually vended through specific API like Network Extension). If you're an IT admin trying to keep devices configured and want to double-check they stay in compliance, you should be using MDM or Apple Configurator.

我看到了原来的帖子是做尝试和解决这个缺乏的API,但这只有工作,如果你是给用户的配置文件(所以可以添加额外的证书有效负载),苹果会不高兴,如果他们发现这在您的App Store提交的应用程式中。

I see what the original post is doing to try and workaround this lack of API, but this only works if you are the one who gives the profile to the user (and so can add the extra certificate payload) and Apple would not be happy if they found this in your App Store submitted app.

这篇关于检查是否在iOS上安装了配置配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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