我的网络应用程序在设备上以独立模式(从主屏幕启动)工作。我需要的是当图标被更改时,它将在我的设备上更改。所以在页面上我有:
<link rel="apple-touch-icon" href=@UrlExtensions.GetIconUrl(Url, "76×76", Model.IconUrlFromApi) />
<link rel="apple-touch-icon" sizes="76×76" href=@UrlExtensions.GetIconUrl(Url, "76×76", Model.IconUrlFromApi) />
<link rel="apple-touch-icon" sizes="120×120" href=@UrlExtensions.GetIconUrl(Url, "120×120", Model.IconUrlFromApi) />
<link rel="apple-touch-icon" sizes="152×152" href=@UrlExtensions.GetIconUrl(Url, "152×152", Model.IconUrlFromApi) />
<link rel="apple-touch-icon-precomposed" href=@UrlExtensions.GetIconUrl(Url, "precomposed", Model.IconUrlFromApi) />
<link rel="icon" href=@UrlExtensions.GetIconUrl(Url, "152×152", Model.IconUrlFromApi) type="image/x-icon" />
<link rel="shortcut icon" type="image/x-icon" href=@UrlExtensions.GetIconUrl(Url, "48x48", Model.IconUrlFromApi) />
运行应用程序然后重新启动iPhone后图标会发生变化。 是否有可能这样做,如果不重新使用iPhone,图标会改变吗?
BTW我的应用程序使用应用程序缓存..也许这可能会导致问题