虽然我在index.html上添加了一个苹果触摸图标链接,但当我试图将我的angular web应用程序作为快捷方式从iOS safari添加到我的主屏幕上时,它是我的应用程序页面的截图。其中我的图像是150*150大小和一个png。下面是我的HTML代码
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Insights</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="src/assets/icons/favicon-32x32.png">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="manifest" href="manifest.webmanifest">
<link rel="apple-touch-icon" href="src/assets/icons/apple-touch-icon-150x150.png">
<meta name="theme-color" content="#1976d2">
</head>
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body>
</html>
发布于 2020-10-13 15:04:54
在一些研究发现下面的src是我的错之后。
<link rel="apple-touch-icon" href="src/assets/icons/apple-touch-icon-150x150.png">
将其更改为下面的工作方式
<link rel="apple-touch-icon" href="/assets/icons/apple-touch-icon-150x150.png">
https://stackoverflow.com/questions/64204711
复制相似问题