WKWebView / UIWebView get site icon

How can I get the Apple touch icon or logo using WKWebView or UIWebView? I read that getting the badge is possible, however I plan to use the site logo as a short chunk like in iOS Safari and the icon is too small for it. Is there a way to clear the metadata from the website in the webView to get it <link rel="apple-touch-icon" href="apple-touch-icon.png">

?

+3


source to share


1 answer


In Firefox for iOS, we use User Script (code link on Github) to find the icon, which then passes them back to the app, which downloads them using native code ( code link on Github).



+4


source







All Articles