【发布时间】: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