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?
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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With