# 사용자가 활성 상태일 때 iOS 알림의 푸시 권한이 해제될 수 있습니다

**URL:** <https://meta.discourse.org/t/ios-notifications-can-lose-permission-to-push-if-the-user-is-currently-active/290225>\
**Category:** Bug\
**Created:** [1월 1, 2024, 11:35오후 UTC](https://meta.discourse.org/t/ios-notifications-can-lose-permission-to-push-if-the-user-is-currently-active/290225 "2024-01-01T23:35:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)\
**Post date:** [1월 1, 2024, 11:56오후 UTC](https://meta.discourse.org/t/ios-notifications-can-lose-permission-to-push-if-the-user-is-currently-active/290225/4 "2024-01-01T23:56:04Z")

</div>

닫기 작업을 수행하는 것은 괜찮은 것 같네요. 다만 `showNotification`를 호출한 \_이후\_에 이루어져야 한다는 전제가 붙습니다.

… 하지만 솔직히 알림을 아예 닫는 것의 장점이 보이지 않습니다. 제 생각엔 그냥 알림 트레이에 쌓이게 두는 편이 나을 것 같습니다.

[https://developer.mozilla.org/ko/docs/Web/API/Notification/close](https://developer.mozilla.org/ko/docs/Web/API/Notification/close)

> **참고:** 이 API는 고정된 지연 시간 후에 알림이 화면에서 제거되도록 하는 목적으로만 사용해서는 안 됩니다. 이 메서드는 알림이 초기에 표시된 후 사용자가 더 이상 상호작용할 수 없도록 알림 트레이에서도 알림을 제거하기 때문입니다. 이 API의 유효한 사용 사례는 더 이상 관련이 없는 알림을 제거하는 것입니다(예: 메시징 앱에서 사용자가 웹페이지에서 알림을 이미 읽은 경우, 또는 음악 앱에서 다음 노래가 이미 재생되고 있는 경우).

---

_[View the full topic](https://meta.discourse.org/t/ios-notifications-can-lose-permission-to-push-if-the-user-is-currently-active/290225)._
