Check if a configuration profile is installed on iOS

时光毁灭记忆、已成空白 提交于 2019-12-06 05:04:35

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.

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.

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