博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[PWA] Customize the Splash Screen of a PWA built with create-react-app
阅读量:6856 次
发布时间:2019-06-26

本文共 991 字,大约阅读时间需要 3 分钟。

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 link tag in index.html to specify those images as the splash screen for each device resolution.

Also, make sure to remove background_color from the manifest - or it may overwrite the splash screen images on iOS.

 

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 apple-mobile-web-app-capable with a meta tag.

Then we can specify each of those launch images as the image for that resolution.

Finally, in manifest.json, we have to actually remove the "background_color" setting first. Otherwise, that will override all of our images.

 

 

转载地址:http://xtyyl.baihongyu.com/

你可能感兴趣的文章
IIS URL Rewrite 重定向域名到www
查看>>
手术器械领域RFID投资回报率解析
查看>>
Generating Text with Deep Reinforcement Learning
查看>>
Android N安全功能详解:为恶意程序开启“困难模式”
查看>>
Amazon英特尔合作面向Alexa的智能语音参考设计
查看>>
无需网络,黑客竟可通过散热风扇传递消息
查看>>
并行计算Brahma :LINQ-to-GPU
查看>>
《Linux内核设计的艺术:图解Linux操作系统架构设计与实现原理》——第1章 从开机加电到执行main函数之前的过程...
查看>>
NIPS 2016精华大盘点丨吴恩达、LeCun等大师的论文、PPT都在这儿,别劳心去找了...
查看>>
详悉物联网搜索解决方案上的飞跃
查看>>
智慧城市与城市创新
查看>>
“大数据”是重塑招聘未来的首要趋势
查看>>
信息通信十三五规划:支持窄带物联网全国性网络
查看>>
Teradata与Nuix合作 助客户处理“暗数据”
查看>>
关于今年最大的IPO公司Line 你需要了解这几点
查看>>
杨元庆增持联想 并向股东致歉
查看>>
PC软件安装量排名出炉:最高的竟是它
查看>>
从HTTP迁移至HTTPS需要注意什么?
查看>>
韩国上百机构曾被朝鲜黑客攻击 逾4万份文件泄露
查看>>
Aspire Fertility诊所采用RFID技术
查看>>