Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting safari history from phone

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?

like image 537
Satyam Avatar asked Oct 19 '25 21:10

Satyam


2 Answers

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?

like image 87
Srikar Appalaraju Avatar answered Oct 22 '25 09:10

Srikar Appalaraju


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

like image 28
WrightsCS Avatar answered Oct 22 '25 11:10

WrightsCS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!