Why won't this apple-touch-icon work?

前端 未结 2 1085
没有蜡笔的小新
没有蜡笔的小新 2021-01-18 16:03

I have the following code in my website:


Wh

相关标签:
2条回答
  • 2021-01-18 16:22

    This will only work from an HTTP or HTTPS site with a Valid and trusted security certificate.

    If there's a certificate error, iOS will not load the image. Temporarily trusting the certificate in Safari for the page will not trust the certificate for the homescreen shortcut. If you are using a self-signed certificate, you must add the untrusted root certificate as a trusted certificate at the OS level.

    1. On the iOS device, navigate to a page which has a link to the .crt file
    2. Tap the link
    3. Approve/Install through all the confirmation screens
    0 讨论(0)
  • 2021-01-18 16:40

    Try using a relative URL:

    <link rel="apple-touch-icon" href="/images/apple-touch-icon.png" />
    

    It should go to your base directory and find the icon in /images.

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