Set default iOS web clip icon title?

前端 未结 2 1334
南笙
南笙 2021-02-04 04:51

Is it possible to set a default title or override the generated title for when a user is in Safari on their iOS device and clicks \"Add to Home Screen\"?

I imagine this

2条回答
  •  误落风尘
    2021-02-04 05:15

    When you "Add to Home Screen", iOS only looks at the on your page. It truncates the title so that it's short enough to show the whole thing below the icon without having "..." in the middle of it. That's not something you can change, but you can adapt to it by changing your if the user opens the page in iOS using server-side code or JavaScript.

    More information about web apps are in the Apple docs are here: https://developer.apple.com/library/safari/#codinghowtos/Mobile/UserExperience/_index.html

提交回复
热议问题