Programatically check if there is a configuration profile installed or not on an iPhone

拥有回忆 提交于 2019-12-06 05:20:43

问题


I need to develop an application that programatically checks if there is a configuration profile (called "X", for example) installed on the phone or not.

I tried the solution already on this link but it didn't work. I also posted a question already related to this solution, but there has been no answer.


回答1:


This is very hard to do. If you are asking in the context of an MDM solution then your app on the device could ask the server for what is installed (assuming you, or your company, develop both the MDM-side and the app on the device). If your app needs to find out by itself then the only way to do this is if your app is an in-house app: - run it as a VOIP app so it can run regularly in the background - monitor the iOS kernel messages via an asl_queue for messages relating to a profile getting installed or deleted.



来源:https://stackoverflow.com/questions/13364922/programatically-check-if-there-is-a-configuration-profile-installed-or-not-on-an

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