# 添加到主屏幕（iOS、iPadOS）

**URL:** <https://meta.discourse.org/t/add-to-home-screen-ios-ipados/266897>\
**Category:** Theme component\
**Tags:** official, ios-add-home-screen\
**Created:** [2023年六月1日 14:48 UTC](https://meta.discourse.org/t/add-to-home-screen-ios-ipados/266897 "2023-06-01T14:48:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2023年六月1日 15:40 UTC](https://meta.discourse.org/t/add-to-home-screen-ios-ipados/266897/3 "2023-06-01T15:40:43Z")

</div>

> [@jordan-vidrine](#):
>
> 没有用于决定弹出窗口何时显示的计时器

在 Android 核心应用中，我们使用 `trust level >= 1` 检查来显示弹出窗口，这就像一个计时器，但 IMO 更好：

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/pwa-install-banner.js#L41-L46](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/pwa-install-banner.js#L41-L46)

我想知道这个组件是否应该使用相同的 🤔

另外，我很想将 Android 和 iOS 的 PWA 安装横幅合并到核心中的单个组件中！

---

_[View the full topic](https://meta.discourse.org/t/add-to-home-screen-ios-ipados/266897)._
