在PWA启动画面中删除名称 [英] Remove name in PWA splash screen

查看:130
本文介绍了在PWA启动画面中删除名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在渐进式Web应用程序的初始屏幕中删除名称?

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.

示例manifest.json:

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"
  }]
}

推荐答案

无法在启动屏幕上有选择地显示应用程序名称.推荐的方法是开发一个徽标,该徽标将在您的应用程序外观旁边显示.可能您可以尝试为该名称设置一个空字符串,但这可能会带来意想不到的后果,包括使浏览器开始完全忽略清单.

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.

这篇关于在PWA启动画面中删除名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆