[PWA] Customize the Splash Screen of a PWA built with create
Android displays a splash screen for PWAs based on the icons and names you provide,but iOS just displays a solid color splash screen for installed PWAs by default. We‘ll make a new splash screen image for every iOS device resolution size that we want to support,and then we can make a? Also,make sure to remove? ? For Splash screen,it use 512*512 image for Andorid. For IOS we need to add image for splash screen,no other way around currently. ? First,we must tell iOS that the app is? <meta name="apple-mobile-web-app-capable" content="yes"> Then we can specify each of those launch images as the image for that resolution. <link rel="apple-touch-startup-image" href="splash_640x1136.jpg" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"> <link rel="apple-touch-startup-image" href="splash_750x1334.jpg" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"> <link rel="apple-touch-startup-image" href="splash_1242x2208.jpg" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"> <link rel="apple-touch-startup-image" href="splash_1125x2436.jpg" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"> <link rel="apple-touch-startup-image" href="splash_1536x2048.jpg" media="(min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)"> <link rel="apple-touch-startup-image" href="splash_1668x2224.jpg" media="(min-device-width: 834px) and (max-device-width: 834px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)"> <link rel="apple-touch-startup-image" href="splash_2048x2732.jpg" media="(min-device-width: 1024px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait)"> Finally,in? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- c# – 为什么在LINQ查询之后的GC释放了WhereListIterator,而
- ruby-on-rails – 用于rails 5.1中的枚举参数的新的Argumen
- 【FLASH】flash发布APK遇到问题
- ruby-on-rails – 使用Oj.dump进行序列化时将符号转换为字符
- preg_replace中eis什么意思说明
- Js中使用hasOwnProperty方法检索ajax响应对象的例子
- 解析rdf格式的数据
- flex3+struts 1.3+spring+ibatis 2.x整合代码实例
- MobX 在 React Native开发中的应用
- ruby-on-rails – Resque没有获取Redis配置设置