# iOS：独立网站的推送通知

**URL:** <https://meta.discourse.org/t/ios-push-notifications-for-independent-sites/242014>\
**Category:** Feature\
**Created:** [2022年十月16日 12:24 UTC](https://meta.discourse.org/t/ios-push-notifications-for-independent-sites/242014 "2022-10-16T12:24:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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年四月8日 14:16 UTC](https://meta.discourse.org/t/ios-push-notifications-for-independent-sites/242014/5 "2023-04-08T14:16:57Z")

</div>

截至今天，任何 Discourse 网站都可以在 iOS 上提供推送通知，前提是用户将该网站添加到主屏幕并启用了推送通知。

> [@iOS 16 web push notifications in 2023](https://meta.discourse.org/t/ios-16-web-push-notifications-in-2023/229240/30?u=falco):
>
> [1] pry(main)\> PushSubscription.last =\> #\<PushSubscription:0x00007fec11b781a8 id: 5164, user\_id: 8722, data: "{\"endpoint\":\"https://web.push.apple.com/.........\",\"keys\":{\"p256dh\":\"..................\",\"auth\":\"..............\"}}", created\_at: Thu, 16 Feb 2023 21:51:24.260325000 UTC +00:00, updated\_at: Thu, 16 Feb 2023 21:51:24.260325000 UTC +00:00, error\_count: 0, first\_error\_at: nil\> Just enabled it here on Meta on my iPad, let’s see how…

---

_[View the full topic](https://meta.discourse.org/t/ios-push-notifications-for-independent-sites/242014)._
