问题
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