I'm creating a custom browser application.
apart from the sites visited from my browser, i'd like to show the history of the sites visited from safari browser as well.
From my application, can I get the history of the web sites visited from safari browser on iphone or ipod or ipad?
问题:
回答1:
Simply put NO, you can't access the Safari History. Apps are sandboxed.
If this is for an in-house app, then you could jailbreak the phones and go around the sandboxing like so -
We can find the history.plist
in /var/mobile/Media/Safari/
and this we can read in jailbreaken iPhone.
Update:
see this SO link: How to access iPhone Safari History in an App?
回答2:
Simply put, you cannot. The history is stored in a property list outside of your applications sandbox and you cannot access it.
On the jailbroken side, there is a History.plist located at /private/var/mobile/Library/Safari
回答3:
You can't. There is NO API to access Safari's browsing history.
回答4:
I got it. Please follow following path then you will retrieve Browser history for iOS7 iPhone.
/private/var/mobile/Applications//Library/Safari/History.plist
In iOS7 safari app not a system app. When you open Applications folder then you can find history and other plist files.