Getting safari history from phone

前端 未结 4 630
孤街浪徒
孤街浪徒 2021-01-06 13:01

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

相关标签:
4条回答
  • 2021-01-06 13:38

    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

    0 讨论(0)
  • 2021-01-06 13:44

    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.

    0 讨论(0)
  • 2021-01-06 13:50

    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?

    0 讨论(0)
  • 2021-01-06 13:53

    You can't. There is NO API to access Safari's browsing history.

    0 讨论(0)
提交回复
热议问题