iOS Programmatically delete browsing history
On an iPad (iOS 4.2.1) I need to do the following programmatically (Objective-C, Cocoa Framework): Clean the Safari browser's history, cache, bookmarks and cookies. I have found a method to do this with 'global' cookies but none for the other items. Also I would like to clean up the content of any newsreader that the user may have downloaded. Is there a generic way to do that? The background of my question is this: The iPads will be used in a hotel environment by the guests. I need to make sure they get a clean iPad without the traces and letfovers of the pre开发者_如何学JAVAvious users activity.
Download the iPhone Configuration Utility (free), which allows you to control a lot of stuff exactly for this purpose:
http://www.apple.com/support/iphone/enterprise/
It allows you to handy stuff:
- Lock settings (WiFi, etc.)
- Define which Apps can be used and loaded
- Enable/Disable features on the device
- Much, much more...
AFAIK you can even do a "over-the-air" reset/re-configuration.
Also you might want to enable "Find my iPhone" in case these devices are 3G+WiFi models. This would allow you to track where the devices are in case they are stolen.
Here's a (German) screenshot of the configuration utility. Just to give you an idea.
Update:
BoxTone seems to be a provider for MDM (Mobile Device Management) which allows you to remote-control/manage all your devices. This works in combination with the configuration utility.
http://www.boxtone.com/
Just restore from a clean backup every time a user returns the device.
精彩评论