问题
We are doing an app where we apply app lock to the app.we need to check if the app lock profile is already installed or not.is there a way to check if it is already installed in the app.We need to do this as because when a new version of app is installed in device then app lock profile cannot be added to the new app as it is already installed in the older app.is there a way to detect if app lock is installed in the app or not programmatically.
回答1:
IOS MDM has a command "Profile list". It will enumerate all profiles installed on the device and return it to the server.
You should send this command and check the return dictionary to see whether your app lock profile is in there.
Check MDM Protocol reference guide for details.
来源:https://stackoverflow.com/questions/25236305/detecting-ios-app-with-app-lock-mdm-profile