简体   繁体   English

在Safari浏览器上使用ios 9.1添加到主屏幕图标不会填充在Ipad上

[英]Add to Home Screen icon not populating on Ipad with ios 9.1 on safari browser

I have used below lines of code to populate the Add to home screen icon but it still gives an image of the entire page while clicking on add to home screen icon. 我使用下面的代码行来填充添加到主屏幕图标,但它仍然提供整个页面的图像,同时单击添加到主屏幕图标。

    <link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png"/>
    <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"/>
    <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png"/>
    <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"/>
    <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png"/>

I am sure the path to this images are correct. 我确信这张图片的路径是正确的。

I have tried almost every solution available on internet including this website but don't seem to get it working. 我已经尝试了几乎所有可用的互联网解决方案,包括这个网站,但似乎没有让它工作。 Please let me know in case if any other information needs to be provided. 如果需要提供任何其他信息,请告知我们。

https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html#//apple_ref/doc/uid/TP40002051-CH3-SW4 https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html#//apple_ref/doc/uid/TP40002051-CH3-SW4

Any points of assistance would be of immense help. 任何援助点都会有很大的帮助。

Be sure that you're not on a dev server or on a site that you need to obtain a certificate for. 确保您不在开发服务器或您需要获取证书的站点上。 I ran into a similar issue and was finally resolved by moving assets onto production srvr. 我遇到了类似的问题,最终通过将资产转移到生产srvr来解决。

I tested on physical (live) devices and also using BrowserStack to reach those devices and browsers I didn't have and everything worked as expected. 我在物理(实时)设备上进行了测试,并使用BrowserStack来访问我没有的设备和浏览器,一切都按预期工作。

I could not populate the image in Add to Home Screen option due to https certificate issue .Though i could browse the images using the path of the image but surprisingly it did not populate the home screen image on ipad. 由于https证书问题,我无法在“添加到主屏幕”选项中填充图像。尽管我可以使用图像路径浏览图像,但令人惊讶的是它没有在ipad上填充主屏幕图像。

Would like to get few answers on how to debug on safari browser from within the ipad. 想从ipad中获取有关如何在safari浏览器上进行调试的几个答案。

I added a new certificate for the device and the add to home screen icon image started appearing as intended. 我为设备添加了新证书,并且添加到主屏幕图标图像开始按预期显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM