Verify/Check to see if a Configuration Profile has been installed on iPhone
Does anyone know if there's an API to check to see if a particular Configuration Profile has been ins开发者_如何学编程talled on a iOS device?
Thanks, Cole
There is no API for that, but there is a workaround based on certificate validation. You have to create a self-signed root certificate and include it into your configuration profile. Then you have to create another certificate signed by this root certificate and include it into your application. When you need to verify if a configuration profile is installed, you may verify if that certificate is trusted. See Apple developer forums for details - https://devforums.apple.com/message/11142#11142
精彩评论