Remove name in PWA splash screen

混江龙づ霸主 提交于 2019-12-07 06:14:03

问题


how can I remove the name in the splash screen of my progressive web app?

The app name is already in the logo / icon. That's why I don't want to see the name in the bottom of the splash screen again.

example manifest.json:

{
  "name": "HackerWeb",
  "short_name": "HackerWeb",
  "start_url": ".",
  "display": "standalone",
  "background_color": "#fff",
  "description": "A simply readable Hacker News app.",
  "icons": [{
    "src": "images/touch/homescreen48.png",
    "sizes": "48x48",
    "type": "image/png"
  }, {
    "src": "images/touch/homescreen72.png",
    "sizes": "72x72",
    "type": "image/png"
  }]
}

回答1:


There is not a way to selectively display the app name on the splash screen. The recommended approach is to develop a logo that will work being displayed next to your application neame. Potentially you could try setting an empty string for the name but that could have unintended consequences including making browsers start ignoring the manifest altogether.



来源:https://stackoverflow.com/questions/46647984/remove-name-in-pwa-splash-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!