【问题标题】:Why "Tap to copy the URL for this app" notification appears for my PWA every time I open it为什么每次打开我的 PWA 时都会出现“点击以复制此应用的 URL”通知
【发布时间】:2019-11-19 10:31:19
【问题描述】:

我正在使用 React 开发 PWA。我可以知道是什么导致了此通知“点击以复制此应用的 URL”。每次打开应用程序时都会出现在通知中心?下面是我的 manifest.json:

{
  "name": "System Name",
  "short_name": "System",
  "icons": [
    { ...
    }
  ],
  "start_url": "/bwc/",
  "display": "standalone",
  "theme_color": "#0066FF",
  "background_color": "#FFFFFF",
  "orientation": "portrait"
}

Screenshot of "Tap to copy the url for this app" notification

【问题讨论】:

  • 这是 PWA 的自动 chrome 通知。显示,因为对于已安装的 PWA,用户看不到 URL。他们试图对用户有所帮助。您应该可以通过单击此处显示的通知设置链接来隐藏它。
  • 我也有同样的问题。我的 PWA 看起来不是“全屏”,因为正在显示此通知......有什么幸运的解决方法吗?

标签: google-chrome mobile notifications progressive-web-apps


【解决方案1】:

这是 Chrome 中的默认行为,目前无法禁用它。

您可以为Chromium bug 1066658 加注星标,以添加您对禁用通知功能的支持。如果您有特定的用例或用户旅程会因删除它而受到影响,请将其添加为评论。

【讨论】:

    猜你喜欢
    • 2021-10-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-14
    • 1970-01-01
    • 1970-01-01
    • 2023-01-16
    • 2023-04-09
    相关资源
    最近更新 更多