# iOSでのWebプッシュ通知は、クリック時にURLにルーティングされません

**URL:** <https://meta.discourse.org/t/web-push-notifications-on-ios-dont-route-user-to-any-url-on-click/255975>\
**Category:** Bug\
**Tags:** pwa, push-notifications, ios\
**Created:** [2023 年 2 月 22 日午後 6:01 UTC](https://meta.discourse.org/t/web-push-notifications-on-ios-dont-route-user-to-any-url-on-click/255975 "2023-02-22T18:01:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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 年 2 月 22 日午後 6:01 UTC](https://meta.discourse.org/t/web-push-notifications-on-ios-dont-route-user-to-any-url-on-click/255975/1 "2023-02-22T18:01:40Z")

</div>

iOS PWA でプッシュ通知を受信すると、正しい PWA が正しく開かれます。

ただし、すでに開いている場合、たとえば返信の通知で投稿 URL のような通知の正しいターゲット URL にルーティングされません。

おそらく、次のコードでの iOS の非互換性です。

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/service-worker.js.erb#L215-L236](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/service-worker.js.erb#L215-L236)

最初に @pmusaraj によって報告されました。

---

_[View the full topic](https://meta.discourse.org/t/web-push-notifications-on-ios-dont-route-user-to-any-url-on-click/255975)._
