How can I get the apple-touch-icon or logo of the website using WKWebView or UIWebView? I've read that getting a favicon is possible, however I plan on using the website's logo as a short cut like in iOS Safari and a favicon is too small for it. Is there a way to scrape metadata from a website in webView to get <link rel="apple-touch-icon" href="apple-touch-icon.png">
?
Asked
Active
Viewed 2,198 times
3

SleepNot
- 2,982
- 10
- 43
- 72
1 Answers
7
In Firefox for iOS we use a User Script (Link to code on Github) to find the icon that then passes them back to the application which downloads them using native code (Link to code on Github).

Stefan Arentz
- 34,311
- 8
- 67
- 88
-
1Thanks not only for the answer about getting the icon but also for linking me to firefox-iOS. I am developing a custom browser so it would be a great reference. – SleepNot May 11 '15 at 02:35