beforeinstallprompt 未在 iOS 中触发
beforeinstallprompt not firing in iOS
- 网站 Url:[编辑]
- 提示在 Samsung Internet、Windows 桌面 Chrome、Android Chrome
中有效
- 提示在 Safari 或 Chrome 对于 iOS
不起作用
- Lighthouse 测试通过(忽略 start_url 错误,无论我是否修复都没有效果。我试过)
- PWA 可安装在 Android、iOS 和 Windows
上
- 离线模式在 PWA 中按预期工作
- 当我 运行 灯塔测试时,我收到控制台错误(即使图像确实存在):尝试使用清单中的以下图标时出错:[redacted]/assets/icons/icon-144x144.png (下载错误或资源不是有效图像)
- 清单有效且没有语法错误
- 实际应用是 Angular 9 应用 运行ning 在 /app
- 当 beforeinstallprompt 触发时,“在浏览器中继续”按钮应该消失并替换为“安装应用程序”按钮
PWA 在 iOS 上工作,为什么提示不起作用?
BeforeInstallPromptEvent API is supported by Chrome and Edge. Safari (Webkit) does not support it and on iOS all browsers are Webkit under the hood.
- 网站 Url:[编辑]
- 提示在 Samsung Internet、Windows 桌面 Chrome、Android Chrome 中有效
- 提示在 Safari 或 Chrome 对于 iOS 不起作用
- Lighthouse 测试通过(忽略 start_url 错误,无论我是否修复都没有效果。我试过)
- PWA 可安装在 Android、iOS 和 Windows 上
- 离线模式在 PWA 中按预期工作
- 当我 运行 灯塔测试时,我收到控制台错误(即使图像确实存在):尝试使用清单中的以下图标时出错:[redacted]/assets/icons/icon-144x144.png (下载错误或资源不是有效图像)
- 清单有效且没有语法错误
- 实际应用是 Angular 9 应用 运行ning 在 /app
- 当 beforeinstallprompt 触发时,“在浏览器中继续”按钮应该消失并替换为“安装应用程序”按钮
PWA 在 iOS 上工作,为什么提示不起作用?
BeforeInstallPromptEvent API is supported by Chrome and Edge. Safari (Webkit) does not support it and on iOS all browsers are Webkit under the hood.