问题
I'd like to prevent an enterprise iOS app from being removed by users. Apple provides documentation on how to do this for Web Clips, but I'm struggling to find anything related to actual apps. Is it possible? and if so then how to do it?
The ideal solution would involve a setting in the plist installation file, but options involving configuration profiles or an MDM would also work.
回答1:
The only way I know to prevent apps from being deleted is as follows:
On your iPhone/iPad go to Settings -> General -> Restrictions -> Deleting Apps (off).
You will have to enter a Restrictions Password and turn Restrictions on.
回答2:
I am pretty sure it's impossible to prevent deletion of particular apps using public API and MDM.
Actually, I haven't seen solution for this even for private API's.
P.S. sangony is right. Prevetion to delete all apps are the closest you can get. And it's configurable through MDM.
回答3:
I have spent a lot of time on this plist thing but i couldn't find any thing.I assume it's not possible through simple plist setting.
As far as i know for any non jailbroken device is concerned
You can make apps undeletable by making following selections in iOS.
Settings -> General -> Restrictions -> Deleting Apps -> Off
In case of enterprise apps:
You may try creating a custom configuration profile using iPCU(iPhone Configuration utility) or Apple Configurator and install it on multiple devices or you can use enterprise MDM to do this.
FYI:
This feature was introduced in apple iOS 4.3
来源:https://stackoverflow.com/questions/16265718/prevent-enterprise-ios-app-from-being-removed