# 일부 경우 푸시 알림을 활성화해도 실제 구독이 되지 않습니다

**URL:** https://meta.discourse.org/t/enabling-push-notifications-does-not-actually-subscribe-in-some-cases/381043
**Category:** Bug
**Tags:** push-notifications
**Created:** [8월 31, 2025, 2:36오전 UTC](https://meta.discourse.org/t/enabling-push-notifications-does-not-actually-subscribe-in-some-cases/381043 "2025-08-31T02:36:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![justinm](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@justinm](https://meta.discourse.org/u/justinm)
#### Post date: [8월 31, 2025, 2:36오전 UTC](https://meta.discourse.org/t/enabling-push-notifications-does-not-actually-subscribe-in-some-cases/381043/1 "2025-08-31T02:36:09Z")

</div>

> <https://github.com/discourse/discourse/blob/bb6c5c9fa1793887f6ba3a3489f2ce0d7549a6e9/app/assets/javascripts/discourse/app/services/desktop-notifications.js#L127-L146>

초기 온보딩 과정에서 iOS 사용자는 포럼을 PWA로 설치한 후, PWA를 처음 열 때 알림 동의 배너를 받는 것을 관찰했습니다.  
이 동의 배너에서 "알림 활성화"를 클릭하면 권한이 요청되고, 이후 확인 알림이 전송됩니다.

_그러나_, 이는 실제로 사용자를 푸시 알림에 구독하지 않습니다. 이는 예상치 못한 동작입니다!

알림 동의 배너의 경우, 여기의 코드는 먼저 사용자 동의를 요청하기(`Notification.requestPermission`) 위해 `else` 경로를 따르지만, 푸시 알림에 구독하지는 않습니다(`subscribePushNotification`).

* * *

현재의 우회 방법은 사용자가 [알림 설정](https://meta.discourse.org/my/preferences/notifications)으로 이동하여那里的 “알림 활성화” 버튼을 클릭하는 것입니다.

---

<div class="post-metadata">

### Author: ![justinm](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@justinm](https://meta.discourse.org/u/justinm)
#### Post date: [8월 31, 2025, 3:02오전 UTC](https://meta.discourse.org/t/enabling-push-notifications-does-not-actually-subscribe-in-some-cases/381043/2 "2025-08-31T03:02:09Z")

</div>

> <https://github.com/discourse/discourse/pull/34644>
>
> https://meta.discourse.org/t/enabling-push-notifications-does-not-actually-subsc…ribe-if-consent-is-required/381043
> 
> Discourse currently supports two different types of notifications:
> \* Desktop (browser) notifications: these are used on desktop when the user has a Discourse tab open but idle.
> \* Push notifications: these are used both for desktop and mobile to notify a user about activity when they may not have any Discourse tabs open.
> 
> There is some amount of conflation of these two distinct types, and on iOS I've observed that users can enable the former notifications but not the latter (and the former is useless on mobile).
> 
> There should be a stronger distinction between the two types, and mobile devices should \_never\_ go down the former path since they will typically never have Discourse open in the background!
> 
> \---
> 
> This pull request does the following:
> \* App startup is deferred until the service worker is installed (previously: this was done asynchronously). The registration is now available in a global.
> \* The notification consent banner is now displayed when the device supports notifications (previously: only in PWA). This change will be \*\*widely visible to all users of Discourse\*\*.
> \* The dismissal state for the notification consent banner has been reset for all users.
> \* If push notifications are preferred, we no longer implicitly fall back to desktop notifications and they are \_implicitly disabled if already enabled\_.
> \* Added a new getter to the notification consent banner that can be used to determine if a PWA is needed (\`isPushPwaNeeded()\`)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [8월 31, 2025, 11:27오후 UTC](https://meta.discourse.org/t/enabling-push-notifications-does-not-actually-subscribe-in-some-cases/381043/3 "2025-08-31T23:27:45Z")

</div>

상세한 풀 리퀘스트를 올려주셔서 감사합니다! 팀에서 몇 주 안에 검토해 보겠습니다!

---

<div class="post-metadata">

### Author: ![justinm](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@justinm](https://meta.discourse.org/u/justinm)
#### Post date: [9월 1, 2025, 10:30오후 UTC](https://meta.discourse.org/t/enabling-push-notifications-does-not-actually-subscribe-in-some-cases/381043/5 "2025-09-01T22:30:36Z")

</div>

감사합니다!

게시한 이후 해당 PR에 대해 추가 작업을 진행했습니다. 너무 부담이 되지 않기를 바랍니다 🙂  
이 작업이 Discourse의 WebPush 연동을 상당히 개선할 것이며, iOS 사용자에게 Discourse를 PWA로 설치하도록 유도할 수 있는 확장 지점을 제공해 줄 것입니다.

---

<div class="post-metadata">

### Author: ![justinm](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@justinm](https://meta.discourse.org/u/justinm)
#### Post date: [9월 4, 2025, 7:40오후 UTC](https://meta.discourse.org/t/enabling-push-notifications-does-not-actually-subscribe-in-some-cases/381043/6 "2025-09-04T19:40:06Z")

</div>

해당 변경 사항을 포럼에 배포했으며, 이제 라이브 상태입니다.  
이것으로 사용자들의 참여도가 크게 높아질 것 같습니다 😃

누군가에게 포럼을 확인해 달라고 요청했고, 데스크톱과 Android 모두에서 푸시 알림을 활성화하도록 요청받았다는 것을 확인했습니다. 또한 백엔드(`push_notifications` 테이블)에도 등록되어 있습니다.  
이제 다른 모든 사람들이 포럼을 다시 확인하도록 하는 일만 남았습니다.

P.S: 이 프롬프트는 여전히 이 설정 뒤에 게이트가 걸려 있습니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/4/7/647d676fdb933f33a40b67d424d5abf3f485395b.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [9월 15, 2025, 1:59오전 UTC](https://meta.discourse.org/t/enabling-push-notifications-does-not-actually-subscribe-in-some-cases/381043/7 "2025-09-15T01:59:39Z")

</div>

여기서 이루어진 모든 작업에 감사드립니다. 지금 막 미트업에서 돌아온 상태인데, 앞으로 몇 주 안에 제대로 된 리뷰를 제공할 수 있을 것 같습니다.
